vector.unpack

Edit

Returns the components of the vector as numbers.

x, y, z = vector.unpack(v)

Arguments

NameTypeDescription
vvector The vector to unpack.

Returns

NameTypeDescription
xnumber The x component of the vector.
ynumber The y component of the vector.
znumber The z component of the vector.

Example

local x, y, z = vector(1, 2, 3):unpack()

See also