Model:getNodePosition

Returns the position of a node.


x, y, z = Model:getNodePosition(index, space)

Arguments

NameTypeDefaultDescription
indexnumber The index of the node.
spaceOriginType'root' Whether the position should be returned relative to the root node or the node's parent.

Returns

NameTypeDescription
xnumber The x coordinate.
ynumber The y coordinate.
znumber The z coordinate.

x, y, z = Model:getNodePosition(name, space)

Arguments

NameTypeDefaultDescription
namestring The name of the node.
spaceOriginType'root' Whether the position should be returned relative to the root node or the node's parent.

Returns

NameTypeDescription
xnumber The x coordinate.
ynumber The y coordinate.
znumber The z coordinate.

See also