cakecake
30-07-2009 10:36:29
I just begin use NxGore a few days ago.
I create a body and use fuction addForce() to move it,and problems comes.Yes,it moved, but with rotating. why? I just want it move horizontally.
Here is my code:
I use NxOgre 1.5.4, Ogre 1.6.2,physx2.8.1
Another question:
How should I change direction the body move toward,which fuction should I use?
Thank all.
I create a body and use fuction addForce() to move it,and problems comes.Yes,it moved, but with rotating. why? I just want it move horizontally.
Here is my code:
OGRE3DBody* mrobot=mRenderSystem->createBody(new NxOgre::Box(1, 1, 1), NxOgre::Real3(10, 0, 30), "robot.mesh");
mBody->addForce(NxOgre::Real3(10,0,0),NxOgre::Enums::ForceMode_Impulse);
I use NxOgre 1.5.4, Ogre 1.6.2,physx2.8.1
Another question:
How should I change direction the body move toward,which fuction should I use?
Thank all.