Model:getNodePosition

Edit

Returns the position of a node.



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.

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