Thrust calculated with minThrust
[VesselSimulator.git] / KerbalEngineer / VesselSimulator / EngineSim.cs
blob:a/KerbalEngineer/VesselSimulator/EngineSim.cs -> blob:b/KerbalEngineer/VesselSimulator/EngineSim.cs
--- a/KerbalEngineer/VesselSimulator/EngineSim.cs
+++ b/KerbalEngineer/VesselSimulator/EngineSim.cs
@@ -33,6 +33,7 @@
                          double atmosphere,

                          double velocity,

                          float maxThrust,

+                         float minThrust,

                          float thrustPercentage,

                          float requestedThrust,

                          Vector3 vecThrust,

@@ -54,7 +55,7 @@
             this.partSim = theEngine;

 

             this.isActive = active;

-            this.thrust = maxThrust * (thrustPercentage / 100f);

+            this.thrust = (maxThrust - minThrust) * (thrustPercentage / 100f) + minThrust;

             //MonoBehaviour.print("thrust = " + thrust);

 

             this.thrustVec = vecThrust;