Skip to content

TweenRotation

mrlinds edited this page Sep 28, 2018 · 5 revisions

About

Tween Rotation will rotate an object over time

All tween classes use the same set of common settings.

See page : Common Settings

Parameters

Rotation Type

Euler

Will interpolate the values in Angles over the time of the tween. This will convert from Euler to Quaternion every step of the tween (Vector3.Lerp). This is useful if for example you want to set the inputs from -180 degrees to +180 degrees which are equivalent in Quaternions.

Lerp

Will interpolate with Quaternion.Lerp between values converted to Quaternion equivalents If you intent to rotate over 360 degrees you will need to add midpoint steps.

Slerp

Will interpolate with Quaternion.Slerp between values converted to Quaternion equivalents If you intent to rotate over 360 degrees you will need to add midpoint steps.

Move Rotations

Rotation per Axis in local space Rotations are evenly distributed over the vertical axis of Interpolation.

Lindsay Jorgensen lindsay (at) radialgames (dot) com or twitter @mrlinds

Clone this wiki locally