Model:getNodePosition
EditReturns the position of a node.
Arguments
Name | Type | Default | Description |
index | number | The index of the node. | |
space | OriginType | 'root' | Whether the position should be returned relative to the root node or the node's parent. |
Returns
Name | Type | Description |
x | number | The x coordinate. |
y | number | The y coordinate. |
z | number | The z coordinate. |
Arguments
Name | Type | Default | Description |
name | string | The name of the node. | |
space | OriginType | 'root' | Whether the position should be returned relative to the root node or the node's parent. |
Returns
Name | Type | Description |
x | number | The x coordinate. |
y | number | The y coordinate. |
z | number | The z coordinate. |