Mat4:setPosition

Edit

Sets the translation of the matrix, without changing its rotation or scale.



Arguments

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

Returns

NameTypeDescription
selfMat4 The modified input matrix.

Arguments

NameTypeDescription
positionvector The new position.

Returns

NameTypeDescription
selfMat4 The modified input matrix.

See also