NiAVObjectGetLocalRotation

From the Oblivion ConstructionSet Wiki
Revision as of 21:11, 28 August 2010 by imported>DragoonWraith (NifGetNthChildLocalRotation moved to NiAVObjectGetLocalRotation: new name for function as of alpha 5.)
Jump to navigation Jump to search

This is a command from NifSE.

Syntax

(matrix:LocalRotation) NifGetNthChildLocalRotation short:ChildID short:NifID

Returns the matrix of the local rotation of the specified Child of the root node.

The matrix is a 3x3 array of floats.

Example

The 'DWnifSEexRotations.esp' file here contains scripts which create rotation matrices about each XYZ axis, and applies them to the local rotation of a mesh, demonstrating how this function might be used.

See Also


External Links