majc
02-08-2008 22:24:54
How can i rotate the body along with the cam movement?
I did this but its not working:
I know a solution with setPositionOrientation but i want to avoid that because i read some posts and for what i read its not good to use that.
Thanks in advance!
I did this but its not working:
const MouseState &mouseState = mMouse->getMouseState();
camRotationX = -mouseState.X.rel * 0.13;
mPlayerCollision->getBody()->setOmega(Vector3(0,camRotationX,0));
I know a solution with setPositionOrientation but i want to avoid that because i read some posts and for what i read its not good to use that.
Thanks in advance!