mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    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>
    MonoBehaviour
    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>, MonoBehaviour

    Properties

    AxisStrength

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

    AxisStrength

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

    GravityStrength

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

    GravityStrength

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

    LocalCenterOfGravity

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

    LocalCenterOfGravity

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

    Radius

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

    Radius

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

    WorldCenterOfGravity

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

    WorldCenterOfGravity

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

    Methods

    DistortPointInternal(Vector3, Single)

    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)

    DistortPointInternal(Vector3, Single)

    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)

    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)

    DistortScaleInternal(Vector3, Single)

    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()

    OnDrawGizmos()

    Declaration
    public void OnDrawGizmos()

    Implements

    IComparable<>
    MonoBehaviour
    In This Article
    • Properties
      • AxisStrength
      • AxisStrength
      • GravityStrength
      • GravityStrength
      • LocalCenterOfGravity
      • LocalCenterOfGravity
      • Radius
      • Radius
      • WorldCenterOfGravity
      • WorldCenterOfGravity
    • Methods
      • DistortPointInternal(Vector3, Single)
      • DistortPointInternal(Vector3, Single)
      • DistortScaleInternal(Vector3, Single)
      • DistortScaleInternal(Vector3, Single)
      • OnDrawGizmos()
      • OnDrawGizmos()
    • Implements
    Back to top Generated by DocFX