Quat:normalize
EditAdjusts the values in the quaternion so that its length becomes 1.
q = Quat:normalize()
Arguments
None
Returns
Name | Type | Description |
q | Quat | The original quaternion. |
Notes
A common source of bugs with quaternions is to forget to normalize them after performing a series of operations on them. Try normalizing a quaternion if some of the calculations aren't working quite right!
See also
Quat:length
Quat