Changing Orientation? Direction? of the world of 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
J.sean
Posts: 21
Joined: Tue Sep 08, 2009 6:51 pm
Location: Korea

Changing Orientation? Direction? of the world of mesh..

Post by J.sean »

Hi.
I was trying to make my character rotate in the world with ISceneNode::setRotation().
Yeah. It worked of course.. but the problem is.. I think it rotates only the mesh.. not the world of mesh. What I mean is..

for example.. first, I put mesh in the world.. and make it move forward with setPosition(vector3df(0, 0, 1)). It goes to forward of course.. and then I rotate it 90 degrees left with setRotation(). and then I move it forward again. BUT it moves to the right.. not the forward direction where it faces. Hope you understand what I mean..

so.. the question is... how can I rotate the world of meshes? not just meshes.. so that I can move forward after rotate the mesh..
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

J.sean
Posts: 21
Joined: Tue Sep 08, 2009 6:51 pm
Location: Korea

Post by J.sean »

oh.. Virion.. thanks!!

that link helped me a lot!!

I was able to rotate my character correctly... haha.

thanks.
Post Reply