Model:getNodePose

Returns the pose (position and orientation) of a node.


x, y, z, angle, ax, ay, az = Model:getNodePose(index, origin)

Arguments

NameTypeDefaultDescription
indexnumber The index of a node.
originOriginType'root' Whether the pose should be returned relative to the root node or the node's parent.

Returns

NameTypeDescription
xnumber The x position of the node.
ynumber The y position of the node.
znumber The z position of the node.
anglenumber The number of radians the node is rotated around its axis of rotation.
axnumber The x component of the axis of rotation.
aynumber The y component of the axis of rotation.
aznumber The z component of the axis of rotation.

x, y, z, angle, ax, ay, az = Model:getNodePose(name, origin)

Arguments

NameTypeDefaultDescription
namestring The name of a node.
originOriginType'root' Whether the pose should be returned relative to the root node or the node's parent.

Returns

NameTypeDescription
xnumber The x position of the node.
ynumber The y position of the node.
znumber The z position of the node.
anglenumber The number of radians the node is rotated around its axis of rotation.
axnumber The x component of the axis of rotation.
aynumber The y component of the axis of rotation.
aznumber The z component of the axis of rotation.

See also