Difference between revisions of "NiAVObjectSetLocalRotation"
Jump to navigation
Jump to search
imported>DragoonWraith |
imported>DragoonWraith |
||
Line 7: | Line 7: | ||
Sets the local rotation of the specified Child of the root node. | Sets the local rotation of the specified Child of the root node. | ||
== 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. | |||
== Notes == | == Notes == |
Revision as of 14:31, 23 June 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