private static List <ISpaceCraft> BuildF9Dragon2(IMassiveBody planet, MissionConfig config, string craftDirectory) { var dragon = new DragonV2.DragonV2(craftDirectory, planet.Position + new DVector2(0, -planet.SurfaceRadius) + config.PositionOffset, planet.Velocity, config.PayloadMass, 1250); var dragonTrunk = new DragonV2Trunk(craftDirectory, DVector2.Zero, DVector2.Zero); var f9S1 = new F9S1B5(craftDirectory, DVector2.Zero, DVector2.Zero); var f9S2 = new F9S2B5(craftDirectory, DVector2.Zero, DVector2.Zero, 9.0); dragon.AddChild(dragonTrunk); dragonTrunk.SetParent(dragon); dragonTrunk.AddChild(f9S2); f9S2.SetParent(dragonTrunk); f9S2.AddChild(f9S1); f9S1.SetParent(f9S2); return(new List <ISpaceCraft> { dragon, dragonTrunk, f9S2, f9S1 }); }
private static List <ISpaceCraft> BuildGenericF9B5(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 F9S1B5(craftDirectory, DVector2.Zero, DVector2.Zero); var f9S2 = new F9S2B5(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 }); }