ModelData:getNodeOrientation

Returns local orientation of a node, relative to its parent.


angle, ax, ay, az = ModelData:getNodeOrientation(index)

Arguments

NameTypeDescription
indexnumber The index of the node.

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 = ModelData:getNodeOrientation(name)

Arguments

NameTypeDescription
namestring The name of the node.

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