Class RotateAroundPoint
This class provides functionality to rotate the hand hint around a pivot point over time.
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()