Skip to content

raylib.MatrixRotateZ

JoeStrout edited this page Nov 16, 2026 · 3 revisions

Get rotation matrix about the Z axis; angle is in radians

Parameters

Parameter Default Value Note
angle 0

Return value

Condition Return Value
(always) map

Notes

Example

// Rotate 45 degrees around the Z axis
angle = 45 * (pi / 180)
r = raylib.MatrixRotateZ(angle)

Clone this wiki locally