Difference between revisions of "NiAVObjectSetLocalTransform"

Jump to navigation Jump to search
353 bytes added ,  19:45, 29 August 2010
no edit summary
imported>DragoonWraith
imported>DragoonWraith
 
'''Syntax'''
(bool:success) NifSetNthChildLocalTransformTEMPNiAVObjectSetLocalTransformTEMP float:a11 float:a12 float:a13 float:a14 \
float:a21 float:a22 float:a23 float:a24 \
float:a31 float:a32 float:a33 float:a34 \
float:a41 float:a42 float:a43 float:a44 short:ChildIDnifID ''short:NifIDblockID''
(bool:success) NiAVObjSetLocTransfT float:a11 float:a12 float:a13 float:a14 \
float:a21 float:a22 float:a23 float:a24 \
float:a31 float:a32 float:a33 float:a34 \
float:a41 float:a42 float:a43 float:a44 short:nifID ''short:blockID''
 
Sets the local transform matrix of the specified <tt>NiAVObject</tt>-derived block. The default value of <tt>blockID</tt>, 0, refers to the NIF's root, a <tt>NiNode</tt>, and so this function can be used without an explicit <tt>blockID</tt> to set the local transform of the root.
Sets the local transform of the specified Child of the root node.
 
== Notes ==
* Because OBSE Plug-Ins cannot currently accept arrays as arguments, this<tt>NiAVObjectSetLocalRotation</tt>, functionas takesit 16would floatsproperly insteadexist, ofcannot onebe 4x4 matrix of floatsimplemented. OBSE v1900<tt>NiAVObjectSetLocalRotationTEMP</tt> is expectedprovided toas enablean thealternative; acceptance of arrays, in which case this functionit will be deprecated in favor of the<tt>NiAVObjectSetLocalRotation</tt> versionwhen thatOBSE acceptsadds the matrix.ability Backwardsto take array arguments, but backwards compatibility ''will'' be maintained however.
** Due to Wiki software limitations, the syntax sectionfor <tt>NiAVObjectSetLocalRotationTEMP</tt> 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 1811 arguments appear on a single line.
* This function is untested, due solely to the fact that the author does not fully understand how this matrix works and would not be able to judge whether or not it works correctly even if it were tested. Feedback on it from someone who knows how it works would be appreciated.
 
== See Also ==
* [[NiAVObjectGetLocalTransform]]
* [[NifGetNthChildLocalTransform]]
 
 
* [[NiAVObjectSetLocalTranslation]]
* [[NifSetNthChildLocalTranslationTEMP]]
* [[NiAVObjectSetLocalRotation]]
* [[NifSetNthChildLocalRotationTEMP]]
* [[NiAVObjectSetLocalScale]]
* [[NifSetNthChildLocalScale]]
 
[[Category:NifSE|SetNthChildTransformAVObjectSetTransform]]
[[Category:NifSE (ChildrenNiAVObject)|SetNthChildTransformSetTransform]]

Navigation menu