Model:getNodePose

Edit

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

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

Arguments

NameTypeDefaultDescription
nodestring | number The name or 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.

See also