Difference between revisions of "NiAVObjectSetLocalTransform"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
imported>DragoonWraith
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:


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 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.
The passed <tt>array_var</tt> must be a 4×4 [[:Category:Linear Algebra Functions (OBSE)|matrix]].


== See Also ==
== See Also ==

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]