BBMOD_Quaternion.FromEuler

A function defined in BBMOD_Quaternion.gml

FromEuler(_x, _y, _z)

Description

Initializes the quaternion using euler angles.

Arguments

Name Type Description
_x Real The rotation around the X axis (in degrees).
_y Real The rotation around the Y axis (in degrees).
_z Real The rotation around the Z axis (in degrees).

Returns

Struct.BBMOD_Quaternion Returns self.

Note

The order of rotations is YXZ, same as in the matrix_build function.

Do you find this page helpful?

Copyright © 2024, BlueBurn. Built on January 21, 2024 using GMDoc.