Exemplo n.º 1
0
        public SimObject(string name, Vector2D position, Vector2D velocity, Earth planet, Color dotcolor)
        {
            this.name   = name;
            pos         = position;
            vel         = velocity;
            dotcol      = dotcolor;
            this.planet = planet;
            ang         = 0;

            acc = Vector2D.Zero;
        }
Exemplo n.º 2
0
        protected override void Initialize()
        {
            graphics.PreferredBackBufferWidth  = 1024;
            graphics.PreferredBackBufferHeight = 640;
            Window.Title = "Rocket Simulator";

            view = new WindowViewportAdapter(Window, GraphicsDevice);
            cam  = new Camera2D(view);

            earth = new Earth(new Vector2D(500, 6371300), Color.ForestGreen, 8192);

            Vehicle temp = new F9S1("Booster", null, new Vector2D(500, 255), new Vector2D(0, 0), earth, Color.White);

            vehicles.Add(new F9S2Dragon("S2Dragon", temp, new Vector2D(500, 215), new Vector2D(0, 0), earth, Color.White));
            vehicles.Add(temp);
            vehicles[1].child  = vehicles[0];
            vehicles[0].offset = new Vector2D(0, -16);

            base.Initialize();
        }
Exemplo n.º 3
0
        public ITSShip(string name, Vehicle parent, Vector2D position, Vector2D velocity, Earth planet, Color dotcolor) : base(name, parent, position, velocity, planet, dotcolor)
        {
            emptyMass    = 450000; //150t empty + 300t cargo
            fuelCapacity = 1950000;
            _fuelMass    = fuelCapacity * 1;

            engines = new Dictionary <Engine, int>();
            engines.Add(Engine.RaptorVac, 6);
            throttle = 0;

            stageTime = 0;
        }
Exemplo n.º 4
0
 public Vehicle(string name, Vehicle parent, Vector2D position, Vector2D velocity, Earth planet, Color dotcolor) : base(name, position, velocity, planet, dotcolor)
 {
     this.parent = parent;
     offset      = Vector2D.Zero;
     grounded    = false;
 }
Exemplo n.º 5
0
        public F9S1(string name, Vehicle parent, Vector2D position, Vector2D velocity, Earth planet, Color dotcolor) : base(name, parent, position, velocity, planet, dotcolor)
        {
            emptyMass    = 22200;
            fuelCapacity = 409500;
            _fuelMass    = fuelCapacity * 1;

            cogOffsetEmptyMass = new Vector2D(1.83, 32.4);
            cogOffsetPropFull  = new Vector2D(1.83, 24.7);
            cogOffsetPropEmpty = new Vector2D(1.83, 34.59);

            engines = new Dictionary <Engine, int>();
            engines.Add(Engine.Merlin1D, 9);
            throttle = 1;

            totalTime = 0;
        }
Exemplo n.º 6
0
        public ITSBooster(string name, Vehicle parent, Vector2D position, Vector2D velocity, Earth planet, Color dotcolor) : base(name, parent, position, velocity, planet, dotcolor)
        {
            emptyMass    = 275000;
            fuelCapacity = 6700000;
            _fuelMass    = fuelCapacity * 1;

            engines = new Dictionary <Engine, int>();
            engines.Add(Engine.RaptorSL, 42);
            throttle = 1;

            totalTime = 0;
        }
Exemplo n.º 7
0
        public F9S2Dragon(string name, Vehicle parent, Vector2D position, Vector2D velocity, Earth planet, Color dotcolor) : base(name, parent, position, velocity, planet, dotcolor)
        {
            emptyMass    = 14000; //about 4000 for s2 and 10k for loaded dragon
            fuelCapacity = 107500;
            _fuelMass    = fuelCapacity * 1;

            cogOffsetEmptyMass = new Vector2D(1.83, 4.87);
            cogOffsetPropFull  = new Vector2D(1.83, 9.88);
            cogOffsetPropEmpty = new Vector2D(1.83, 12.2);

            engines = new Dictionary <Engine, int>();
            engines.Add(Engine.MerlinVacD, 1);
            throttle = 0;

            baseCd   = 0.4;
            dragArea = 10.52;

            stageTime = 0;
        }