Skip to content

raylib.MatrixCompose

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Compose a transformation matrix from rotational, translational and scaling components TODO: This function is not following raymath conventions defined in header: NOT self-contained

Parameters

Parameter Default Value Note
translation [0, 0, 0]
rotation QuaternionIdentity
scale [1, 1, 1]

Return value

Condition Return Value
(always) map

Notes

Example

translation = [1, 2, 3]
rotation = raylib.QuaternionIdentity
scale = [1, 1, 1]
mat = raylib.MatrixCompose(translation, rotation, scale)

Clone this wiki locally