I'm trying to make a little game like star wars racer or f-zero.
So, I have a spaceship flying at ca. 1m above the ground.
My problem is : when the spaceship hits the heightmap, it suddenly rotates and can get upside-down..
I limit the angular velocity, to simulate the wind force, by :
Code: Select all
velocity = m_body->getAngularVelocity();
velocity *= .9f;
m_body->setAngularVelocity(velocity);
Thx a lot in advance