Modifier

Partager via


DistorterSphere Class

Definition

A Distorter that distorts points based on their distance and direction from the center of the sphere of size 2.

public ref class DistorterSphere : Microsoft::MixedReality::Toolkit::Physics::Distorter
[UnityEngine.AddComponentMenu("Scripts/MRTK/Core/DistorterSphere")]
public class DistorterSphere : Microsoft.MixedReality.Toolkit.Physics.Distorter
[<UnityEngine.AddComponentMenu("Scripts/MRTK/Core/DistorterSphere")>]
type DistorterSphere = class
    inherit Distorter
Public Class DistorterSphere
Inherits Distorter
Inheritance
UnityEngine.MonoBehaviour
DistorterSphere
Attributes
UnityEngine.AddComponentMenuAttribute

Constructors

DistorterSphere()

Properties

DistortionEnabled (Inherited from Distorter)
DistortOrder (Inherited from Distorter)
DistortStrength (Inherited from Distorter)
SphereCenter

Methods

CompareTo(Distorter) (Inherited from Distorter)
DistortPoint(Vector3, Single)

Distorts a world-space point Automatically applies DistortStrength and ensures that strength never exceeds 1

(Inherited from Distorter)
DistortPointInternal(Vector3, Single)

Internal function where position distortion is done

DistortScale(Vector3, Single)

Distorts a world-space scale Automatically applies DistortStrength and ensures that strength never exceeds 1

(Inherited from Distorter)
DistortScaleInternal(Vector3, Single)

Internal function where scale distortion is done

OnDisable() (Inherited from Distorter)
OnEnable() (Inherited from Distorter)

Applies to