Returns the orientation of a node.
angle, ax, ay, az = Model:getNodeOrientation(node, origin)
Arguments
| Name | Type | Default | Description |
| node | string | number | |
The name or index of a 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.
|
See also