Model:getNodeOrientation

Returns the orientation of a node.


angle, ax, ay, az = Model:getNodeOrientation(index, origin)

Arguments

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

Returns

NameTypeDescription
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.

angle, ax, ay, az = Model:getNodeOrientation(name, origin)

Arguments

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

Returns

NameTypeDescription
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