Page 1 of 1

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

Posted: Mon Sep 21, 2009 5:55 am
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..

Posted: Mon Sep 21, 2009 6:09 am
by Virion

Posted: Mon Sep 21, 2009 4:12 pm
by J.sean
oh.. Virion.. thanks!!

that link helped me a lot!!

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

thanks.