Mat4:unpack

Edit

Returns the components of matrix, either as 10 separated numbers representing the position, scale, and rotation, or as 16 raw numbers representing the individual components of the matrix in column-major order.

... = Mat4:unpack(raw)

Arguments

NameTypeDefaultDescription
rawbooleanfalse Whether to return the 16 raw components.

Returns

NameTypeDescription
...number The requested components of the matrix.

See also