From 6fa0721363ca18280f5125c7e65009aa54ffa96a Mon Sep 17 00:00:00 2001 From: andy Date: Tue, 27 Sep 2005 16:53:12 +0000 Subject: [PATCH] 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... --- src/FDM/YASim/Gear.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; }