From: mfranz Date: Thu, 4 Dec 2008 18:47:49 +0000 (+0000) Subject: Allow negative thrust. This allows a single recoil or vibration X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0cf9d58b76d86ba6e4d8dc2651e203c06a89db45;p=flightgear.git Allow negative thrust. This allows a single recoil or vibration thruster to accelerate in both directions. THROTTLE input still clamps to 0/1 by default. (OK'ed by Andy) --- diff --git a/src/FDM/YASim/Thruster.cpp b/src/FDM/YASim/Thruster.cpp index cd57745a6..cfc31a7a9 100644 --- a/src/FDM/YASim/Thruster.cpp +++ b/src/FDM/YASim/Thruster.cpp @@ -42,7 +42,7 @@ void Thruster::setDirection(float* dir) void Thruster::setThrottle(float throttle) { - _throttle = Math::clamp(throttle, 0, 1); + _throttle = Math::clamp(throttle, -1, 1); } void Thruster::setMixture(float mixture)