Difference between revisions of "NiAVObjectSetLocalTranslation"

Jump to navigation Jump to search
no edit summary
imported>DragoonWraith
imported>DragoonWraith
Line 2: Line 2:


'''Syntax'''
'''Syntax'''
  (bool:success) NifSetNthChildLocalTranslationTEMP float:x float:y float:z short:ChildID short:NifID
  (bool:success) NiAVObjectSetLocalTranslationTEMP float:x float:y float:z short:nifID ''short:blockID''
(bool:success) NiAVObjSetLocTranslT float:x float:y float:z short:nifID ''short:blockID''


Sets the local translation of the specified Child of the root node.
Sets the local translation of the <tt>NiAVObject</tt>-derived block specified by <tt>blockID</tt>. The default value of <tt>blockID</tt>, 0, refers to the NIF's root, a <tt>NiNode</tt>, which is a <tt>NiAVObject</tt>-derived class. Thus, this function may be used without an explicit <tt>blockID</tt> when setting the root's local translation.


== Notes ==
== Notes ==
* Because OBSE Plug-Ins cannot currently accept arrays as arguments, this function takes 3 floats instead of one length 3 array 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.
* Because OBSE Plug-Ins cannot currently accept arrays as arguments, <tt>NiAVObjectSetLocalTranslation</tt>, as it would properly exist, cannot be implemented. <tt>NiAVObjectSetLocalTranslationTEMP</tt> is provided as an alternative; it will be deprecated in favor of <tt>NiAVObjectSetLocalTranslation</tt> when OBSE adds the ability to take array arguments, but backwards compatibility will be maintained.


== See Also ==
== See Also ==
* [[NifGetNthChildLocalTranslation]]
* [[NiAVObjectGetLocalTranslation]]




* [[NifSetNthChildLocalTransformTEMP]]
* [[NiAVObjectSetLocalTransformTEMP]]
* [[NifSetNthChildLocalRotationTEMP]]
* [[NiAVObjectSetLocalRotationTEMP]]
* [[NifSetNthChildLocalScale]]
* [[NiAVObjectSetLocalScale]]


[[Category:NifSE|SetNthChildTranslation]]
[[Category:NifSE|AVObjectSetTranslation]]
[[Category:NifSE (Children)|SetNthChildTranslation]]
[[Category:NifSE (NiAVObject)|SetTranslation]]

Navigation menu