From: andy Date: Tue, 27 Sep 2005 16:53:12 +0000 (+0000) Subject: Vivian pointed out that the gear keep rotating after the wheel leaves X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6fa0721363ca18280f5125c7e65009aa54ffa96a;p=flightgear.git 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... --- diff --git a/src/FDM/YASim/Gear.cpp b/src/FDM/YASim/Gear.cpp index b214178de..f1e38a0c9 100644 --- a/src/FDM/YASim/Gear.cpp +++ b/src/FDM/YASim/Gear.cpp @@ -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; }