private static List <ISpaceCraft> BuildF9Dragon(IMassiveBody planet, MissionConfig config, string craftDirectory)
        {
            var dragon      = new Dragon(craftDirectory, planet.Position + new DVector2(0, -planet.SurfaceRadius) + config.PositionOffset, planet.Velocity, config.PayloadMass);
            var dragonTrunk = new DragonTrunk(craftDirectory, DVector2.Zero, DVector2.Zero);

            var f9S1 = new F9S1(craftDirectory, DVector2.Zero, DVector2.Zero);
            var f9S2 = new F9S2(craftDirectory, DVector2.Zero, DVector2.Zero, 8.3);

            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
            });
        }
Exemple #2
0
        public static List <ISpaceCraft> BuildF9Dragon(IMassiveBody planet, string path)
        {
            var dragon      = new Dragon(planet.Position + new DVector2(0, -planet.SurfaceRadius), planet.Velocity);
            var dragonTrunk = new DragonTrunk(DVector2.Zero, DVector2.Zero);

            var f9S1 = new F9S1(DVector2.Zero, DVector2.Zero);
            var f9S2 = new F9S2(DVector2.Zero, DVector2.Zero, 8.3);

            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
            });
        }