Applying 2 forces at a time?

Ablomis

07-03-2006 20:04:09

here is my callback


void Player::ForceCallback(OgreNewt::Body *bod)
{

bod->addForce(MovementForce);
bod->addForce(Vector3(0.0f,-9.8,0.0f));

}


is this the right thing to do? my gravity force doesnt work, it works only when i erase the movement force?

Sinjaph

07-03-2006 21:03:31

you need to multiply your gravity with the mass of the body

F = mg

Ablomis

07-03-2006 21:47:24

omg what a noob i am:) i did it for movement but forgot for gravity