Returns the transform (position, scale, and rotation) of a node.
x, y, z, sx, sy, sz, angle, ax, ay, az = Model:getNodeTransform(node, origin)
Arguments
| Name | Type | Default | Description |
| node | string | number | |
The name or index of a node.
|
| origin | OriginType | 'root' |
Whether the transform 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.
|
| sx | number |
The x scale of the node.
|
| sy | number |
The y scale of the node.
|
| sz | number |
The z scale 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