public static List <ISpaceCraft> BuildFalconHeavy(IMassiveBody planet, string path) { Payload payload = GetPayload(path); var demoSat = new DemoSat(planet.Position + new DVector2(0, -planet.SurfaceRadius), planet.Velocity + new DVector2(-400, 0), payload.DryMass, payload.PropellantMass); var fhS1 = new FHS1(DVector2.Zero, DVector2.Zero); var fhS2 = new FHS2(DVector2.Zero, DVector2.Zero); var fhLeftBooster = new FHBooster(1, DVector2.Zero, DVector2.Zero); var fhRightBooster = new FHBooster(2, DVector2.Zero, DVector2.Zero); demoSat.AddChild(fhS2); fhS2.SetParent(demoSat); fhS2.AddChild(fhS1); fhS1.SetParent(fhS2); fhS1.AddChild(fhLeftBooster); fhS1.AddChild(fhRightBooster); fhLeftBooster.SetParent(fhS1); fhRightBooster.SetParent(fhS1); return(new List <ISpaceCraft> { demoSat, fhS2, fhS1, fhLeftBooster, fhRightBooster }); }
private static List <ISpaceCraft> BuildFalconHeavy(IMassiveBody planet, MissionConfig config, string craftDirectory) { var demoSat = new DemoSat(craftDirectory, planet.Position + new DVector2(0, -planet.SurfaceRadius) + config.PositionOffset, planet.Velocity + new DVector2(-400, 0) + config.VelocityOffset, config.PayloadMass); var fairingLeft = new Fairing(craftDirectory, demoSat.Position, DVector2.Zero, true); var fairingRight = new Fairing(craftDirectory, demoSat.Position, DVector2.Zero, false); demoSat.AttachFairings(fairingLeft, fairingRight); var fhS1 = new FHS1(craftDirectory, DVector2.Zero, DVector2.Zero); var fhS2 = new FHS2(craftDirectory, DVector2.Zero, DVector2.Zero); var fhLeftBooster = new FHBooster(craftDirectory, 1, DVector2.Zero, DVector2.Zero); var fhRightBooster = new FHBooster(craftDirectory, 2, DVector2.Zero, DVector2.Zero); demoSat.AddChild(fhS2); fhS2.SetParent(demoSat); fhS2.AddChild(fhS1); fhS1.SetParent(fhS2); fhS1.AddChild(fhLeftBooster); fhS1.AddChild(fhRightBooster); fhLeftBooster.SetParent(fhS1); fhRightBooster.SetParent(fhS1); return(new List <ISpaceCraft> { demoSat, fhS2, fhS1, fhLeftBooster, fhRightBooster }); }
private static List <ISpaceCraft> BuildFalconHeavy(IMassiveBody planet, Payload payload, string craftDirectory, float offset = 0) { var demoSat = new DemoSat(craftDirectory, planet.Position + new DVector2(offset, -planet.SurfaceRadius), planet.Velocity + new DVector2(-400, 0), payload.DryMass, payload.PropellantMass); var fhS1 = new FHS1(craftDirectory, DVector2.Zero, DVector2.Zero); var fhS2 = new FHS2(craftDirectory, DVector2.Zero, DVector2.Zero); var fhLeftBooster = new FHBooster(craftDirectory, 1, DVector2.Zero, DVector2.Zero); var fhRightBooster = new FHBooster(craftDirectory, 2, DVector2.Zero, DVector2.Zero); demoSat.AddChild(fhS2); fhS2.SetParent(demoSat); fhS2.AddChild(fhS1); fhS1.SetParent(fhS2); fhS1.AddChild(fhLeftBooster); fhS1.AddChild(fhRightBooster); fhLeftBooster.SetParent(fhS1); fhRightBooster.SetParent(fhS1); return(new List <ISpaceCraft> { demoSat, fhS2, fhS1, fhLeftBooster, fhRightBooster }); }
private static List <ISpaceCraft> BuildF9S2TJI(IMassiveBody planet, MissionConfig config, string craftDirectory) { var demoSat = new DemoSat(craftDirectory, planet.Position + new DVector2(0, -planet.SurfaceRadius - 169500), planet.Velocity + new DVector2(-7795, 0), config.PayloadMass); var f9S2 = new F9S2(craftDirectory, DVector2.Zero, DVector2.Zero, 8.3); demoSat.AddChild(f9S2); f9S2.SetParent(demoSat); return(new List <ISpaceCraft> { demoSat, f9S2 }); }
private static List <ISpaceCraft> BuildF9(IMassiveBody planet, Payload payload, string craftDirectory, float offset = 0) { var demoSat = new DemoSat(craftDirectory, planet.Position + new DVector2(offset, -planet.SurfaceRadius), planet.Velocity + new DVector2(-400, 0), payload.DryMass, payload.PropellantMass); var f9S1 = new F9S1(craftDirectory, DVector2.Zero, DVector2.Zero); var f9S2 = new F9S2(craftDirectory, DVector2.Zero, DVector2.Zero, 13.3); demoSat.AddChild(f9S2); f9S2.SetParent(demoSat); f9S2.AddChild(f9S1); f9S1.SetParent(f9S2); return(new List <ISpaceCraft> { demoSat, f9S2, f9S1 }); }
public static List <ISpaceCraft> BuildF9(IMassiveBody planet, string path) { Payload payload = GetPayload(path); var demoSat = new DemoSat(planet.Position + new DVector2(0, -planet.SurfaceRadius), planet.Velocity + new DVector2(-400, 0), payload.DryMass, payload.PropellantMass); var f9S1 = new F9S1(DVector2.Zero, DVector2.Zero); var f9S2 = new F9S2(DVector2.Zero, DVector2.Zero, 13.3); demoSat.AddChild(f9S2); f9S2.SetParent(demoSat); f9S2.AddChild(f9S1); f9S1.SetParent(f9S2); return(new List <ISpaceCraft> { demoSat, f9S2, f9S1 }); }
private static List <ISpaceCraft> BuildGenericF9(IMassiveBody planet, MissionConfig config, string craftDirectory) { var demoSat = new DemoSat(craftDirectory, planet.Position + new DVector2(0, -planet.SurfaceRadius) + config.PositionOffset, planet.Velocity, config.PayloadMass); var fairingLeft = new Fairing(craftDirectory, demoSat.Position, DVector2.Zero, true); var fairingRight = new Fairing(craftDirectory, demoSat.Position, DVector2.Zero, false); demoSat.AttachFairings(fairingLeft, fairingRight); var f9S1 = new F9S1(craftDirectory, DVector2.Zero, DVector2.Zero); var f9S2 = new F9S2(craftDirectory, DVector2.Zero, DVector2.Zero, 11.2); demoSat.AddChild(f9S2); f9S2.SetParent(demoSat); f9S2.AddChild(f9S1); f9S1.SetParent(f9S2); return(new List <ISpaceCraft> { demoSat, f9S2, f9S1, fairingLeft, fairingRight }); }
public static List <ISpaceCraft> BuildFalconHeavy(IMassiveBody planet, string path) { var spacecraft = new List <ISpaceCraft>(); Payload payload = GetPayload(path); var demoSat = new DemoSat(planet.Position + new DVector2(0, -planet.SurfaceRadius), planet.Velocity + new DVector2(-400, 0), payload.DryMass, payload.PropellantMass); var falcon9S1 = new FH9S1(DVector2.Zero, DVector2.Zero); var falcon9S2 = new FH9S2(DVector2.Zero, DVector2.Zero); var fhLeftBooster = new FHBooster(1, DVector2.Zero, DVector2.Zero); var fhRightBooster = new FHBooster(2, DVector2.Zero, DVector2.Zero); demoSat.AddChild(falcon9S2); falcon9S2.SetParent(demoSat); falcon9S2.AddChild(falcon9S1); falcon9S1.SetParent(falcon9S2); falcon9S1.AddChild(fhLeftBooster); falcon9S1.AddChild(fhRightBooster); fhLeftBooster.SetParent(falcon9S1); fhRightBooster.SetParent(falcon9S1); spacecraft.Add(demoSat); spacecraft.Add(falcon9S2); spacecraft.Add(falcon9S1); spacecraft.Add(fhLeftBooster); spacecraft.Add(fhRightBooster); foreach (ISpaceCraft spaceCraft in spacecraft) { spaceCraft.InitializeController(path); } return(spacecraft); }
public static List<ISpaceCraft> BuildFalconHeavy(IMassiveBody planet, string path) { var spacecraft = new List<ISpaceCraft>(); Payload payload = GetPayload(path); var demoSat = new DemoSat(planet.Position + new DVector2(0, -planet.SurfaceRadius), planet.Velocity + new DVector2(-400, 0), payload.DryMass, payload.PropellantMass); var falcon9S1 = new FH9S1(DVector2.Zero, DVector2.Zero); var falcon9S2 = new FH9S2(DVector2.Zero, DVector2.Zero); var fhLeftBooster = new FHBooster(1, DVector2.Zero, DVector2.Zero); var fhRightBooster = new FHBooster(2, DVector2.Zero, DVector2.Zero); demoSat.AddChild(falcon9S2); falcon9S2.SetParent(demoSat); falcon9S2.AddChild(falcon9S1); falcon9S1.SetParent(falcon9S2); falcon9S1.AddChild(fhLeftBooster); falcon9S1.AddChild(fhRightBooster); fhLeftBooster.SetParent(falcon9S1); fhRightBooster.SetParent(falcon9S1); spacecraft.Add(demoSat); spacecraft.Add(falcon9S2); spacecraft.Add(falcon9S1); spacecraft.Add(fhLeftBooster); spacecraft.Add(fhRightBooster); foreach (ISpaceCraft spaceCraft in spacecraft) { spaceCraft.InitializeController(path); } return spacecraft; }
private static List<ISpaceCraft> BuildFalconHeavy(IMassiveBody planet, VehicleConfig vehicle, string craftDirectory, float offset = 0) { var demoSat = new DemoSat(craftDirectory, planet.Position + new DVector2(offset, -planet.SurfaceRadius), planet.Velocity + new DVector2(-400, 0), vehicle.PayloadMass); var fhS1 = new FHS1(craftDirectory, DVector2.Zero, DVector2.Zero); var fhS2 = new FHS2(craftDirectory, DVector2.Zero, DVector2.Zero); var fhLeftBooster = new FHBooster(craftDirectory, 1, DVector2.Zero, DVector2.Zero); var fhRightBooster = new FHBooster(craftDirectory, 2, DVector2.Zero, DVector2.Zero); demoSat.AddChild(fhS2); fhS2.SetParent(demoSat); fhS2.AddChild(fhS1); fhS1.SetParent(fhS2); fhS1.AddChild(fhLeftBooster); fhS1.AddChild(fhRightBooster); fhLeftBooster.SetParent(fhS1); fhRightBooster.SetParent(fhS1); return new List<ISpaceCraft> { demoSat, fhS2, fhS1, fhLeftBooster, fhRightBooster }; }
private static List<ISpaceCraft> BuildF9(IMassiveBody planet, VehicleConfig vehicle, string craftDirectory, float offset = 0) { var demoSat = new DemoSat(craftDirectory, planet.Position + new DVector2(offset, -planet.SurfaceRadius), planet.Velocity + new DVector2(-400, 0), vehicle.PayloadMass); var f9S1 = new F9S1(craftDirectory, DVector2.Zero, DVector2.Zero); var f9S2 = new F9S2(craftDirectory, DVector2.Zero, DVector2.Zero, 13.3); demoSat.AddChild(f9S2); f9S2.SetParent(demoSat); f9S2.AddChild(f9S1); f9S1.SetParent(f9S2); return new List<ISpaceCraft> { demoSat, f9S2, f9S1 }; }