void Thruster::setThrottle(float throttle)
{
- _throttle = Math::clamp(throttle, 0, 1);
+ _throttle = Math::clamp(throttle, -1, 1);
}
void Thruster::setMixture(float mixture)
_mixture = Math::clamp(mixture, 0, 1);
}
+
void Thruster::setStarter(bool starter)
{
_starter = starter;
for(i=0; i<3; i++) _wind[i] = wind[i];
}
-void Thruster::setAir(float pressure, float temp)
+void Thruster::setAir(float pressure, float temp, float density)
{
_pressure = pressure;
_temp = temp;
- _rho = _pressure / (287.1 * _temp);
+ _rho = density;
}
}; // namespace yasim