RotationSlerp
A class in Root.Township, the global namespace.
Sets its local rotation between two Euler angle sets from a 0 to 1 progress value. Driven by events such as float animation updates.
- Listed in Global namespace: Q to R
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
RotationSlerp() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
2 private and internal fields
Methods
| Member | What it is |
|---|---|
void SetRotation(float progress) | Lerps the Euler angles between the two ends by progress and applies them as local rotation. |