We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

    Show / Hide Table of Contents

    Class DistorterGravity

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

    Inheritance
    Object
    Distorter
    DistorterGravity
    Implements
    IComparable<Distorter>
    Inherited Members
    Distorter.DistortionEnabled
    Distorter.DistortStrength
    Distorter.DistortOrder
    Distorter.CompareTo(Distorter)
    Distorter.DistortPoint(Vector3, Single)
    Distorter.DistortScale(Vector3, Single)
    Distorter.OnEnable()
    Distorter.OnDisable()
    Namespace: Microsoft.MixedReality.Toolkit.Physics
    Assembly: cs.temp.dll.dll
    Syntax
    public class DistorterGravity : Distorter, IComparable<Distorter>

    Properties

    AxisStrength

    Declaration
    public Vector3 AxisStrength { get; set; }
    Property Value
    Type Description
    Vector3

    GravityStrength

    Declaration
    public AnimationCurve GravityStrength { get; set; }
    Property Value
    Type Description
    AnimationCurve

    LocalCenterOfGravity

    Declaration
    public Vector3 LocalCenterOfGravity { get; set; }
    Property Value
    Type Description
    Vector3

    Radius

    Declaration
    public float Radius { get; set; }
    Property Value
    Type Description
    Single

    WorldCenterOfGravity

    Declaration
    public Vector3 WorldCenterOfGravity { get; set; }
    Property Value
    Type Description
    Vector3

    Methods

    DistortPointInternal(Vector3, Single)

    Internal function where position distortion is done

    Declaration
    protected override Vector3 DistortPointInternal(Vector3 point, float strength)
    Parameters
    Type Name Description
    Vector3 point
    Single strength
    Returns
    Type Description
    Vector3
    Overrides
    Distorter.DistortPointInternal(Vector3, Single)

    DistortScaleInternal(Vector3, Single)

    Internal function where scale distortion is done

    Declaration
    protected override Vector3 DistortScaleInternal(Vector3 point, float strength)
    Parameters
    Type Name Description
    Vector3 point
    Single strength
    Returns
    Type Description
    Vector3
    Overrides
    Distorter.DistortScaleInternal(Vector3, Single)

    OnDrawGizmos()

    Declaration
    public void OnDrawGizmos()

    Implements

    System.IComparable<T>
    Back to top Generated by DocFX