Difference between revisions of "NiAVObjectSetLocalTransform"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
(New page: This is a command from NifSE. '''Syntax''' (bool:success) NifSetNthChildLocalTransformTEMP float:a11 float:a12 float:a13 float:a14 \ ...)
 
imported>DragoonWraith
 
(7 intermediate revisions by the same user not shown)
Line 2: Line 2:


'''Syntax'''
'''Syntax'''
  (bool:success) NifSetNthChildLocalTransformTEMP float:a11 float:a12 float:a13 float:a14 \
  (bool:success) NiAVObjectSetLocalTransform array_var:transform short:nifID ''short:blockID''
                                                float:a21 float:a22 float:a23 float:a24 \
(bool:success) NiAVObjSetLocTransf array_var:transform short:nifID ''short:blockID''
                                                float:a31 float:a32 float:a33 float:a34 \
                                                float:a41 float:a42 float:a43 float:a44 short:ChildID short:NifID


Sets the local transform of the specified Child of the root node.
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.


== Notes ==
The passed <tt>array_var</tt> must be a 4×4 [[:Category:Linear Algebra Functions (OBSE)|matrix]].
* Because OBSE Plug-Ins cannot currently accept arrays as arguments, this function takes 16 floats instead of one 4x4 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 18 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 ==
== See Also ==
* [[NifGetNthChildLocalTransform]]
* [[NiAVObjectGetLocalTransform]]


* [[NifSetNthChildLocalTranslationTEMP]]
* [[NifSetNthChildLocalRotationTEMP]]
* [[NifSetNthChildLocalScale]]


[[Category:NifSE|SetNthChildTransform]]
* [[NiAVObjectSetLocalTranslation]]
[[Category:NifSE (Children)|SetNthChildTransform]]
* [[NiAVObjectSetLocalRotation]]
* [[NiAVObjectSetLocalScale]]
 
[[Category:NifSE|AVObjectSetTransform]]
[[Category:NifSE (NiAVObject)|SetTransform]]

Latest revision as of 12:25, 21 January 2011

This is a command from NifSE.

Syntax

(bool:success) NiAVObjectSetLocalTransform array_var:transform short:nifID short:blockID
(bool:success) NiAVObjSetLocTransf array_var:transform short:nifID short:blockID

Sets the local transform matrix of the specified NiAVObject-derived block. The default value of blockID, 0, refers to the NIF's root, a NiNode, and so this function can be used without an explicit blockID to set the local transform of the root.

The passed array_var must be a 4×4 matrix.

See Also[edit | edit source]