Skip to content

raylib.MatrixRotateX

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Get x-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 30 degrees around the X axis
angle = 30 * (pi / 180)
r = raylib.MatrixRotateX(angle)

Clone this wiki locally