Page 1 of 1

How to set orientation of the mesh

Posted: Thu Jul 27, 2006 1:58 pm
by hkolli
hi all

in my code which is previously written in directX i m converting the graphics to Irrlicht engine .

i have a doubt is there anyways we can change the orientation of a scene node in a scene. Like this in case of DirectX

meshFrame -> SetOrientation( scene, xi, yi, zi, 0, 1, 0 );


please let me know
:(

Posted: Thu Jul 27, 2006 2:03 pm
by hkolli
hi
by setting i intend to change the orientation of the mesh whose position( movement ) is controlled in the project .

please let me know

:(

Posted: Thu Jul 27, 2006 2:07 pm
by hybrid
Uhm, you mean setRotation or something?

Posted: Thu Jul 27, 2006 2:46 pm
by hkolli
does setRotation solve the problem of setting the orientation of the node . that is which side it's mesh faces...... in my project i have birds flying so i keep chnging the orientation of the birds flying . that is when the move sideways their body( mesh ) must also tilt sideways .

Posted: Thu Jul 27, 2006 2:53 pm
by vitek
Yes, setRotation() is used to set the orientation of the node on all 3 local axes.