Performs a spherical linear interpolation between this quaternion and another one, which can be used for smoothly animating between two rotations.
The amount of interpolation is controlled by a parameter
t value of zero leaves the original quaternion unchanged, whereas a
t of one sets the original quaternion exactly equal to the target. A value between
1 returns a rotation between the two based on the value.
q = quat:slerp(r, t)
|r||quat||The quaternion to slerp towards.|
|t||number||The lerping parameter.|
|q||quat||The original quaternion, containing the new lerped values.|