lovr.graphics.rotate

Rotates the coordinate system around an axis.

The rotation will last until lovr.draw returns or the transformation is popped off the transformation stack.

lovr.graphics.rotate(angle, ax, ay, az)

Arguments

NameTypeDefaultDescription
anglenumberThe amount to rotate the coordinate system by, in radians.
axnumber0The x component of the axis of rotation.
aynumber1The y component of the axis of rotation.
aznumber0The z component of the axis of rotation.

Returns

Nothing

Notes

Order matters when scaling, translating, and rotating the coordinate system.

See also