BBMOD_Matrix.RotateEuler

A function defined in BBMOD_Matrix.gml

RotateEuler(_x[, _y, _z])

Description

Rotates the matrix using euler angles and returns the result as a new matrix.

Arguments

Name Type Description
_x Real, Struct.BBMOD_Vec3 Rotation on the X axis or a vector with rotations on all axes.
_y Real Rotation on the Y axis. Use undefined if _x is a vector. Defaults to undefined.
_z Real Rotation on the Z axis. Use undefined if _x is a vector. Defaults to undefined.

Returns

Struct.BBMOD_Matrix The resulting matrix.

Note

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

Do you find this page helpful?

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