I've got a 3rd person movement test demo working , but i can't figure out how to apply angular
velocity.
For example , im translating my object into the world like this:
Code: Select all
v[0] = trans.getOrigin().getX() - cosf(dir ) * (vel * dtl);
v[1] = trans.getOrigin().getY();
v[2] = trans.getOrigin().getZ() - sinf(dir ) * (vel * dt);
//apply rotation manually here
I've also tried this:
Code: Select all
body->setAngularVelocity( v/1000);
So , do you guys have any ideas how to combine 3rd person movement with bullet?
Thanks for any help...