]> git.mxchange.org Git - flightgear.git/commitdiff
Vivian pointed out that the gear keep rotating after the wheel leaves
authorandy <andy>
Tue, 27 Sep 2005 16:53:12 +0000 (16:53 +0000)
committerandy <andy>
Tue, 27 Sep 2005 16:53:12 +0000 (16:53 +0000)
the ground.  Fix this by zeroing the values, although a fancier
implementation (that spins down slowly and honors the brake input)
would be possible...

src/FDM/YASim/Gear.cpp

index b214178de9053fab5fe103b0dd12a9b099747ad5..f1e38a0c9c4ab8281aaac7ccd3620290e1828fde 100644 (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;
     }