lovr.graphics.translate
Translates the coordinate system in three dimensions. All graphics operations that use coordinates will behave as if they are offset by the translation value.
The translation will last until lovr.draw
returns or the transformation is popped off the transformation stack.
lovr.graphics.translate(x, y, z)
Arguments
Name | Type | Default | Description |
x | number | 0 | The amount to translate on the x axis. |
y | number | 0 | The amount to translate on the y axis. |
z | number | 0 | The amount to translate on the z axis. |
Returns
Nothing
Notes
Order matters when scaling, translating, and rotating the coordinate system.
See also
lovr.graphics.rotate
lovr.graphics.scale
lovr.graphics.transform
lovr.graphics