Quat:direction
EditCreates a new temporary vec3 facing the forward direction, rotates it by this quaternion, and returns the vector.
v = Quat:direction()
Arguments
None
Returns
Name | Type | Description |
v | Vec3 | The direction vector. |
See also
Mat4:lookAt
Quat