Mat4:setPose

Edit

Sets the position and rotation of the matrix, without changing its scale.



Arguments

NameTypeDescription
xnumber The x translation.
ynumber The y translation.
znumber The z translation.
anglenumber The number of radians the matrix should be rotated around its rotation axis.
axnumber The x component of the axis of rotation.
aynumber The y component of the axis of rotation.
aznumber The z component of the axis of rotation.

Returns

NameTypeDescription
selfMat4 The modified input matrix.

Arguments

NameTypeDescription
positionvector The new position.
orientationquaternion The new orientation.

Returns

NameTypeDescription
selfMat4 The modified input matrix.

See also