Skip to content

raylib.rlRotatef

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Multiply the current matrix by a rotation matrix NOTE: The provided angle must be in degrees

Parameters

Parameter Default Value Note
angle 0
x 0
y 0
z 0

Return value

None.

Notes

Example

raylib.rlPushMatrix
raylib.rlRotatef 45, 0, 0, 1  // rotate 45 degrees around Z axis
// draw rotated object
raylib.rlPopMatrix

Clone this wiki locally