Difference between revisions of "NiAVObjectSetLocalRotation"

Jump to navigation Jump to search
80 bytes removed ,  12:23, 21 January 2011
no edit summary
imported>DragoonWraith
imported>DragoonWraith
 
'''Syntax'''
(bool:success) NiAVObjectSetLocalRotationTEMPNiAVObjectSetLocalRotation array_var:rotation short:nifID ''short:blockID''
(bool:success) NiAVObjSetLocRotTNiAVObjSetLocRot array_var:rotation short:nifID ''short:blockID''▼
▲ (bool:success) NiAVObjSetLocRotT array_var:rotation short:nifID ''short:blockID''
 
Sets the local rotation of the specified <tt>NiAVObject</tt>-derived block. Since <tt>blockID</tt> defaults to 0, the NIF's root <tt>NiNode</tt>, and <tt>NiNode</tt> is derived from <tt>NiAVObject</tt>, this function will change the local rotation of the NIF's root if called with no explicit <tt>blockID</tt>.
 
The passed <tt>array_var</tt> must be a 3&mult;3 [[GenerateRotationMatrix|rotation matrix]]
 
== Example ==
let locRot := MatrixMultiply R locRot ; order matters
 
; for clarity, using NiAVObjectSetLocalRotation.
; as noted below, this function does not yet exist,
; due to technical limitations in the OBSE Plugin API.
NiAVObjectSetLocalRotation locRot nifID blockID
loop

Navigation menu