mat4:unpack

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

NameTypeDescription
rawbooleanWhether to return the 16 raw components.

Returns

NameTypeDescription
...numberThe requested components of the matrix.

See also