RotateAroundPoint Class

Definition

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

C++
public ref class RotateAroundPoint : UnityEngine::MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
RotateAroundPoint

Constructors

Properties

AnimationCurve

Lerp curve that controls the animation rotation over time.

CenteredParent

Parent object centered at rotation center.

Duration

Duration of rotation around the CenteredParent in seconds.

InverseParent

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

PivotPosition

Point to start movement at.

RotationVector

How many degrees to rotate along each axis.

Methods

LateUpdate()
ResetAndDeterminePivot()

Reset position to the PivotPosition.

RotateToTarget()

Start the rotation sequence.

Applies to

Toode Versioonid
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4