Difference between revisions of "NiAVObjectGetLocalRotation"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
imported>DragoonWraith
Line 7: Line 7:


The matrix is a 3x3 array of floats.
The matrix is a 3x3 array of floats.
== Example ==
The '<tt>DWnifSEexRotations.esp</tt>' file [http://code.google.com/p/nifse/downloads/list here] contains scripts which create [http://en.wikipedia.org/wiki/Rotation_matrix#Three_dimensions 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 ==
== See Also ==

Revision as of 14:31, 23 June 2010

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