private static List<ISpaceCraft> BuildItsMarsEDL(IMassiveBody planet, VehicleConfig vehicle, string craftDirectory, float offset = 0) { var ship = new ITSShip(craftDirectory, planet.Position + new DVector2(offset, -planet.SurfaceRadius - 100000), planet.Velocity + new DVector2(-3300, 300), vehicle.PayloadMass, vehicle.PropellantMass); return new List<ISpaceCraft> { ship }; }
private static List<ISpaceCraft> BuildITSCrew(IMassiveBody planet, VehicleConfig vehicle, string craftDirectory, float offset=0) { var ship = new ITSShip(craftDirectory, planet.Position + new DVector2(offset, -planet.SurfaceRadius), planet.Velocity + new DVector2(-400, 0), vehicle.PayloadMass); var booster = new ITSBooster(craftDirectory, DVector2.Zero, DVector2.Zero); ship.AddChild(booster); booster.SetParent(ship); return new List<ISpaceCraft> { ship, booster }; }