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
Name | Type | Default | Description |
angle | number | 0 | The amount to rotate the coordinate system by, in radians. |
ax | number | 0 | The x component of the axis of rotation. |
ay | number | 1 | The y component of the axis of rotation. |
az | number | 0 | The z component of the axis of rotation. |
Returns
Nothing
Notes
Order matters when scaling, translating, and rotating the coordinate system.
See also
lovr.graphics.scale
lovr.graphics.translate
lovr.graphics.transform
lovr.graphics