Returns the pose (position and orientation) of a node.
Arguments
| Name | Type | Default | Description |
| index | number | |
The index of a node.
|
| origin | OriginType | 'root' |
Whether the pose should be returned relative to the root node or the node's parent.
|
Returns
| Name | Type | Description |
| x | number |
The x position of the node.
|
| y | number |
The y position of the node.
|
| z | number |
The z position of the node.
|
| 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 a node.
|
| origin | OriginType | 'root' |
Whether the pose should be returned relative to the root node or the node's parent.
|
Returns
| Name | Type | Description |
| x | number |
The x position of the node.
|
| y | number |
The y position of the node.
|
| z | number |
The z position of the node.
|
| 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