I have a simple question. How can I apply force on a body relative to the direction the body's pointing? I tried doing this with rotate(), like so:
Code: Select all
btVector3 force = btVector3(moveX, moveY, moveZ);
force = force.rotate(btVector3(0,1,0), body->getOrientation().getY());
body->applyForce(force, btVector3(0,0,0));
thanks,
Kukanani