quaternion.unpack
EditReturns the components of the quaternion as numbers. Note that these are the raw components, not angle/axis.
x, y, z, w = quaternion.unpack(q)Arguments
| Name | Type | Description |
| q | quaternion | The quaternion to unpack. |
Returns
| Name | Type | Description |
| x | number | The x component of the quaternion. |
| y | number | The y component of the quaternion. |
| z | number | The z component of the quaternion. |
| w | number | The w component of the quaternion. |
Example
local x, y, z, w = quaternion.pack(1, 2, 3, 4):unpack()