1
0
Fork 0

Vivian pointed out that the gear keep rotating after the wheel leaves

the ground.  Fix this by zeroing the values, although a fancier
implementation (that spins down slowly and honors the brake input)
would be possible...
This commit is contained in:
andy 2005-09-27 16:53:12 +00:00
parent 02512e28c0
commit 6fa0721363

View file

@ -183,6 +183,8 @@ void Gear::calcForce(RigidBody* body, State *s, float* v, float* rot)
if(a > 0) {
_wow = 0;
_frac = 0;
_rollSpeed = 0;
_casterAngle = 0;
return;
}