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

NameTypeDefaultDescription
xnumber0The amount to translate on the x axis.
ynumber0The amount to translate on the y axis.
znumber0The amount to translate on the z axis.

Returns

Nothing

Notes

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

See also