Difference between revisions of "NiAVObjectSetLocalTranslation"

Jump to navigation Jump to search
no edit summary
imported>DragoonWraith
imported>DragoonWraith
 
'''Syntax'''
(bool:success) NifSetNthChildLocalTranslationTEMPNiAVObjectSetLocalTranslationTEMP float:x float:y float:z short:ChildIDnifID ''short:NifIDblockID''
(bool:success) NiAVObjSetLocTranslT float:x float:y float:z short:nifID ''short:blockID''
 
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.
Sets the local translation of the specified Child of the root node.
 
== Notes ==
* Because OBSE Plug-Ins cannot currently accept arrays as arguments, this<tt>NiAVObjectSetLocalTranslation</tt>, functionas takesit 3would floatsproperly insteadexist, ofcannot onebe length 3 array of floatsimplemented. OBSE v1900<tt>NiAVObjectSetLocalTranslationTEMP</tt> is expectedprovided to enable the acceptance of arrays, in whichas casean thisalternative; functionit will be deprecated in favor of the<tt>NiAVObjectSetLocalTranslation</tt> versionwhen thatOBSE acceptsadds the matrix.ability Backwardsto take array arguments, but backwards compatibility ''will'' be maintained however.
 
== See Also ==
* [[NiAVObjectGetLocalTranslation]]
* [[NifGetNthChildLocalTranslation]]
 
 
* [[NiAVObjectSetLocalTransformTEMP]]
* [[NifSetNthChildLocalTransformTEMP]]
* [[NiAVObjectSetLocalRotationTEMP]]
* [[NifSetNthChildLocalRotationTEMP]]
* [[NiAVObjectSetLocalScale]]
* [[NifSetNthChildLocalScale]]
 
[[Category:NifSE|SetNthChildTranslationAVObjectSetTranslation]]
[[Category:NifSE (ChildrenNiAVObject)|SetNthChildTranslationSetTranslation]]

Navigation menu