Mat4:getPosition

Edit

Returns the translation of the matrix. This is the last column of the matrix.

x, y, z = Mat4:getPosition()

Arguments

None

Returns

NameTypeDescription
xnumber The x translation.
ynumber The y translation.
znumber The z translation.

See also