Skip to main content

QuaternionRotationSlerp

A class in Root.Township, the global namespace.

Component that sets its local rotation between two set rotations from a 0 to 1 progress value. Despite the name it uses Quaternion.Lerp.

Constructors​

MemberWhat it is
QuaternionRotationSlerp()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private Quaternion positionALocal rotation at progress 0. Shown as Euler angles in the inspector.
private Quaternion positionBLocal rotation at progress 1.

Methods​

MemberWhat it is
void SetRotation(float progress)Sets the local rotation part way from positionA to positionB by progress.

Used in​

Members of other types that take, return or hold a QuaternionRotationSlerp: