vec3:unpack

Returns the 3 components of vector as numbers.

x, y, z = vec3:unpack()

Arguments

None

Returns

NameTypeDescription
xnumberThe x value.
ynumberThe y value.
znumberThe z value.

See also