Model:getNodeOrientation
EditReturns the orientation of a node.
Arguments
Name | Type | Default | Description |
index | number | The index of the node. | |
origin | OriginType | 'root' | Whether the orientation should be returned relative to the root node or the node's parent. |
Returns
Name | Type | Description |
angle | number | The number of radians the node is rotated around its axis of rotation. |
ax | number | The x component of the axis of rotation. |
ay | number | The y component of the axis of rotation. |
az | number | The z component of the axis of rotation. |
Arguments
Name | Type | Default | Description |
name | string | The name of the node. | |
origin | OriginType | 'root' | Whether the orientation should be returned relative to the root node or the node's parent. |
Returns
Name | Type | Description |
angle | number | The number of radians the node is rotated around its axis of rotation. |
ax | number | The x component of the axis of rotation. |
ay | number | The y component of the axis of rotation. |
az | number | The z component of the axis of rotation. |