편집

다음을 통해 공유


DistorterGravity Class

Definition

A Distorter that distorts points based on their distance and direction to the world center of gravity as defined by WorldCenterOfGravity.

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

Constructors

DistorterGravity()

Properties

AxisStrength
DistortionEnabled (Inherited from Distorter)
DistortOrder (Inherited from Distorter)
DistortStrength (Inherited from Distorter)
GravityStrength
LocalCenterOfGravity
Radius
WorldCenterOfGravity

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)
OnDrawGizmos()
OnEnable() (Inherited from Distorter)

Applies to