mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class RotateAroundPoint

    This class provides functionality to rotate the hand hint around a pivot point over time.

    Inheritance
    Object
    RotateAroundPoint
    Namespace: Microsoft.MixedReality.Toolkit.Experimental.UI.HandCoach
    Assembly: cs.temp.dll.dll
    Syntax
    public class RotateAroundPoint : MonoBehaviour

    Properties

    AnimationCurve

    Lerp curve that controls the animation rotation over time.

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

    CenteredParent

    Parent object centered at rotation center.

    Declaration
    public Transform CenteredParent { get; set; }
    Property Value
    Type Description
    Transform

    Duration

    Duration of rotation around the CenteredParent in seconds.

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

    InverseParent

    Hand hint parent to rotate inverse to centeredParent to keep hand orientation the same.

    Declaration
    public Transform InverseParent { get; set; }
    Property Value
    Type Description
    Transform

    PivotPosition

    Point to start movement at.

    Declaration
    public Transform PivotPosition { get; set; }
    Property Value
    Type Description
    Transform

    RotationVector

    How many degrees to rotate along each axis.

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

    Methods

    LateUpdate()

    Declaration
    public void LateUpdate()

    ResetAndDeterminePivot()

    Reset position to the PivotPosition.

    Declaration
    public IEnumerator ResetAndDeterminePivot()
    Returns
    Type Description
    IEnumerator

    RotateToTarget()

    Start the rotation sequence.

    Declaration
    public void RotateToTarget()
    In This Article
    • Properties
      • AnimationCurve
      • CenteredParent
      • Duration
      • InverseParent
      • PivotPosition
      • RotationVector
    • Methods
      • LateUpdate()
      • ResetAndDeterminePivot()
      • RotateToTarget()
    Back to top Generated by DocFX