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:
parent
d4168d161e
commit
0cf9d58b76
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue