From: andy Date: Fri, 8 Apr 2005 22:39:46 +0000 (+0000) Subject: Don't overwrite the castering value with the non-castering one. Also, X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=88a678eb770b9af887da62038f517f3e4125c34a;p=flightgear.git Don't overwrite the castering value with the non-castering one. Also, make the caster-angle-deg a synonym for the steering angle when the wheel is non-castering. --- diff --git a/src/FDM/YASim/Gear.cpp b/src/FDM/YASim/Gear.cpp index c8439aa7d..b214178de 100644 --- a/src/FDM/YASim/Gear.cpp +++ b/src/FDM/YASim/Gear.cpp @@ -274,7 +274,7 @@ void Gear::calcForce(RigidBody* body, State *s, float* v, float* rot) return; } else { _rollSpeed = vsteer; - _casterAngle = 0; + _casterAngle = _rot; } float fsteer = _brake * calcFriction(wgt, vsteer);