Skip to content

raylib.MatrixRotateZ

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Get z-rotation matrix NOTE: Angle must be provided 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