From 0cf9d58b76d86ba6e4d8dc2651e203c06a89db45 Mon Sep 17 00:00:00 2001 From: mfranz Date: Thu, 4 Dec 2008 18:47:49 +0000 Subject: [PATCH] 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) --- src/FDM/YASim/Thruster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5