Difference between revisions of "NiAVObjectSetLocalRotation"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
imported>DragoonWraith
(No difference)

Revision as of 14:43, 29 August 2010

This is a command from NifSE.

Syntax

(bool:success) NifSetNthChildLocalRotationTEMP float:a11 float:a12 float:a13 \
                                               float:a21 float:a22 float:a23 \
                                               float:a31 float:a32 float:a33 short:ChildID short:NifID

Sets the local rotation of the specified Child of the root node.

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.

Notes

  • Because OBSE Plug-Ins cannot currently accept arrays as arguments, this function takes 9 floats instead of one 3x3 matrix of floats. OBSE v1900 is expected to enable the acceptance of arrays, in which case this function will be deprecated in favor of the version that accepts the matrix. Backwards compatibility will be maintained however.
  • Due to Wiki software limitations, the syntax section cannot be written on one line. Furthermore, it would be hideous to attempt to read that way in any case. However, the CS requires that all 11 arguments appear on a single line.

See Also


External Links