quaternion.slerp
EditPerforms spherical linear interpolation between two quaternions, returning a mix between the two.
q = quaternion.slerp(a, b, t)Arguments
| Name | Type | Description |
| a | quaternion | The first quaternion. |
| b | vector | The second quaternion. |
| t | number |
The interpolation parameter. 0.0 returns a, 1.0 returns b, 0.5 returns a vector halfway between a and b, etc.
|
Returns
| Name | Type | Description |
| q | quaternion | The interpolated quaternion. |