hoffhoff
09-06-2006 02:30:49
Hello,
I start making a game using Newton+Irrlicht, and then I could move it by applying to the body a force, like:
force.X = 100*sin(mesh->getrotation().Y));
force.Z = 100*cos(mesh->getrotation().Y));
Well, now I am moving to Ogre, because it looks very better than Irrlicht, but I donĀ“t know how to make the movement now. I read some documents of Quaternions (even the math book they sugest us to read), but could not understand it.
Can anybody tell me how I can apply the forces correctly, for to make the mesh moves forward?
Thanks!
I start making a game using Newton+Irrlicht, and then I could move it by applying to the body a force, like:
force.X = 100*sin(mesh->getrotation().Y));
force.Z = 100*cos(mesh->getrotation().Y));
Well, now I am moving to Ogre, because it looks very better than Irrlicht, but I donĀ“t know how to make the movement now. I read some documents of Quaternions (even the math book they sugest us to read), but could not understand it.
Can anybody tell me how I can apply the forces correctly, for to make the mesh moves forward?
Thanks!