TweenRotation.cs

Inherits from:

TweenBase.cs

Description:

Rotates to a destination rotation following a AnimationCurve.

Public Properties:

Type Name Description Default Value
Vector3 target    
bool spin Spin around target axis. false
float spinSpeed   1f, Range = 1-360
Quaternion nextRot The next rotation the transform will be at (useful for networking/physics).  

Public Methods:

Name Summary Parameters Returns
UpdateTween     override Void
RotateToTarget     Void
RotateToInitialPos     Void
SetTransformTarget   Transform t Void
SetRotationTarget   Quaternion t Void
ResetToInitial     Void