Returns the transform (position, scale, and rotation) of a node.
Arguments
Name | Type | Default | Description |
index | number | |
The 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.
|
Arguments
Name | Type | Default | Description |
name | string | |
The name 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