How to set orientation of the mesh

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
hkolli
Posts: 42
Joined: Thu Jul 13, 2006 8:29 pm

How to set orientation of the mesh

Post 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
:(
Last edited by hkolli on Thu Jul 27, 2006 2:03 pm, edited 1 time in total.
hkolli
Posts: 42
Joined: Thu Jul 13, 2006 8:29 pm

Post 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

:(
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Uhm, you mean setRotation or something?
hkolli
Posts: 42
Joined: Thu Jul 13, 2006 8:29 pm

Post 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 .
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

Yes, setRotation() is used to set the orientation of the node on all 3 local axes.
Post Reply