private void SetCameraFov(ScalarValue value)
 {
     if (shared.Vessel.isActiveVessel)
     {
         FlightCamera.fetch.FieldOfView = (float)value.GetDoubleValue();
         FlightCamera.fetch.SetFoV((float)value.GetDoubleValue());
     }
 }
 private void SetCameraDistance(ScalarValue value)
 {
     if (shared.Vessel.isActiveVessel)
     {
         FlightCamera.fetch.SetDistanceImmediate((float)value.GetDoubleValue());
     }
 }
 private void SetCameraHdg(ScalarValue value)
 {
     if (shared.Vessel.isActiveVessel)
     {
         FlightCamera.fetch.camHdg = (float)Utils.DegreesToRadians(value.GetDoubleValue());
     }
 }
Beispiel #4
0
        public ScalarValue GetIspAtAtm(ScalarValue atmPressure)
        {
            // Get the combined flow rate of all engines
            double flowRate = FilteredEngineList.Sum(e => e.GetThrust(atmPressure, operational: false) / e.GetIsp(atmPressure.GetDoubleValue()));

            // Divide combined thrust by combined flow rate to get a correct Isp for all engines combined
            return(flowRate > 0 ? FilteredEngineList.Sum(e => e.GetThrust(atmPressure, operational: false)) / flowRate : 0);
        }
Beispiel #5
0
 public ScalarValue GetIspAtAtm(ScalarValue atmPressure)
 {
     return(Engine.GetIsp(atmPressure.GetDoubleValue()));
 }
Beispiel #6
0
 private void TurnRight(ScalarValue degrees)
 {
     if (!shared.Vessel.isEVA)
     {
         return;
     }
     CheckEvaController();
     this.evacontrol.lookdirection = v_rotate(kerbaleva.vessel.transform.forward, kerbaleva.vessel.transform.right, degrees.GetDoubleValue());
     this.evacontrol.order         = Command.LookAt;
 }
Beispiel #7
0
 public void WarpTo(ScalarValue timeStamp)
 {
     TimeWarp.fetch.WarpTo(timeStamp.GetDoubleValue());
 }