A function defined in BBMOD_Quaternion.gml
FromLookRotation(_forward, _up)
Initializes the quaternion using a forward and an up vector. These vectors must not be parallel! If they are, the quaternion will be set to an identity.
Name | Type | Description |
---|---|---|
_forward | Struct.BBMOD_Vec3 |
The vector facing forward. |
_up | Struct.BBMOD_Vec3 |
The vector facing up. |
Struct.BBMOD_Quaternion
Returns self
.
Copyright © 2024, BlueBurn. Built on September 07, 2024 using GMDoc.