Changing Orientation? Direction? of the world of mesh..
Posted: Mon Sep 21, 2009 5:55 am
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..
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..