1
0
Fork 0

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)
This commit is contained in:
mfranz 2008-12-04 18:47:49 +00:00
parent d4168d161e
commit 0cf9d58b76

View file

@ -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)