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:
parent
02512e28c0
commit
6fa0721363
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue