Class MoveToTarget
This class provides functionality to move the hand hint from a tracking position to a target position over time.
Namespace: Microsoft.MixedReality.Toolkit.Experimental.UI.HandCoach
Assembly: cs.temp.dll.dll
Syntax
public class MoveToTarget : MonoBehaviour
Properties
AnimationCurve
Lerp curve that controls the animation position over time from the trackingObject to the targetObject.
Declaration
public AnimationCurve AnimationCurve { get; set; }
Property Value
Type | Description |
---|---|
AnimationCurve |
Duration
Duration of move from tracking object to target object in seconds.
Declaration
public float Duration { get; set; }
Property Value
Type | Description |
---|---|
Single |
RootObject
Shared parent between tracking and target objects used for relative local positions.
Declaration
public GameObject RootObject { get; set; }
Property Value
Type | Description |
---|---|
GameObject |
TargetObject
Target to move to.
Declaration
public GameObject TargetObject { get; set; }
Property Value
Type | Description |
---|---|
GameObject |
TargetOffset
Tunable offset to get the GameObject to arrive at the right target position.
Declaration
public Vector3 TargetOffset { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
TrackingObject
Object to track.
Declaration
public GameObject TrackingObject { get; set; }
Property Value
Type | Description |
---|---|
GameObject |
Methods
Follow()
Starts coroutine to follow the target object.
Declaration
public void Follow()
MoveToTargetPosition()
Starts coroutine to lerp from current position to target position
Declaration
public void MoveToTargetPosition()