コード例 #1
0
 public Merkur(Solarsystem handler, GraphicsDevice device, Camera camera)
     : base(handler, device, camera)
 {
     @Type = CelestialBodyType.Planet;
     Size  = 4900;
     NumericEccentricity = 0.20563069f;
     TurnAroundTime      = 7600521.6f;
     PlanetMass          = 3.285E23;
     PhysicsScale        = 1900000;
     DeltaTime           = 60 * 60 * 24 * 0.1;
     PortionY            = 0.9;
     PortionZ            = 0.06;
     InstancedEllipse    = new InstancedEllipse(Handler, Camera, 35, Color.White);
     InstancedEllipse.PrimitiveRenderType = PrimitiveType.LineStrip;
     LoadContent();
 }
コード例 #2
0
 public Jupiter(Solarsystem handler, GraphicsDevice device, Camera camera)
     : base(handler, device, camera)
 {
     @Type = CelestialBodyType.Planet;
     Size  = 143000;
     NumericEccentricity = 0.0484f;
     TurnAroundTime      = 374112000.0f;
     PlanetMass          = 1.898E27;
     PhysicsScale        = 2800000;
     DeltaTime           = 60 * 60 * 24 * 7;
     PortionY            = 0.98;
     PortionZ            = 0.09;
     InstancedEllipse    = new InstancedEllipse(Handler, Camera, 1500, Color.White);
     InstancedEllipse.PrimitiveRenderType = PrimitiveType.TriangleList;
     LoadContent();
 }
コード例 #3
0
 public Mars(Solarsystem handler, GraphicsDevice device, Camera camera)
     : base(handler, device, camera)
 {
     @Type = CelestialBodyType.Planet;
     Size  = 6800;
     NumericEccentricity = 0.0935f;
     TurnAroundTime      = 59355072.0f;
     PlanetMass          = 6.39E23;
     PhysicsScale        = 2800000;
     DeltaTime           = 60 * 60 * 24 * 0.1;
     PortionY            = 0.99;
     PortionZ            = 0.01;
     InstancedEllipse    = new InstancedEllipse(Handler, Camera, 35, Color.White);
     InstancedEllipse.PrimitiveRenderType = PrimitiveType.LineStrip;
     LoadContent();
 }
コード例 #4
0
 public Neptun(Solarsystem handler, GraphicsDevice device, Camera camera)
     : base(handler, device, camera)
 {
     @Type = CelestialBodyType.Planet;
     Size  = 49500;
     NumericEccentricity = 0.0113f;
     TurnAroundTime      = 5196817440.0f;
     PlanetMass          = 1.024E26;
     PhysicsScale        = 2800000;
     DeltaTime           = 60 * 60 * 24 * 7;
     PortionY            = 0.95;
     PortionZ            = 0.2;
     InstancedEllipse    = new InstancedEllipse(Handler, Camera, 1500, Color.White);
     InstancedEllipse.PrimitiveRenderType = PrimitiveType.TriangleList;
     LoadContent();
 }
コード例 #5
0
 public Saturn(Solarsystem handler, GraphicsDevice device, Camera camera)
     : base(handler, device, camera)
 {
     @Type = CelestialBodyType.Planet;
     Size  = 130500;
     NumericEccentricity = 0.05648f;
     TurnAroundTime      = 928735200.0f;
     PlanetMass          = 5.683E26;
     PhysicsScale        = 2800000;
     DeltaTime           = 60 * 60 * 24 * 7;
     PortionY            = 0.9;
     PortionZ            = 0.03;
     InstancedEllipse    = new InstancedEllipse(Handler, Camera, 1500, Color.White);
     InstancedEllipse.PrimitiveRenderType = PrimitiveType.TriangleList;
     LoadContent();
 }
コード例 #6
0
 public Uranus(Solarsystem handler, GraphicsDevice device, Camera camera)
     : base(handler, device, camera)
 {
     @Type = CelestialBodyType.Planet;
     Size  = 25550 * 2;
     NumericEccentricity = 0.0472f;
     TurnAroundTime      = 2649370896.0f;
     PlanetMass          = 8.683E25;
     PhysicsScale        = 2800000;
     DeltaTime           = 60 * 60 * 24 * 7;
     PortionY            = 0.9;
     PortionZ            = 0.06;
     InstancedEllipse    = new InstancedEllipse(Handler, Camera, 1500, Color.White);
     InstancedEllipse.PrimitiveRenderType = PrimitiveType.TriangleList;
     LoadContent();
 }
コード例 #7
0
 public Pluto(Solarsystem handler, GraphicsDevice device, Camera camera)
     : base(handler, device, camera)
 {
     @Type = CelestialBodyType.Planet;
     Size  = 23000;
     NumericEccentricity = 0.2488f;
     TurnAroundTime      = 7831375200.0f;
     PlanetMass          = 1.27E22;
     PhysicsScale        = 2400000;
     DeltaTime           = 60 * 60 * 24 * 7;
     PortionY            = 0.8;
     PortionZ            = 0.4;
     InstancedEllipse    = new InstancedEllipse(Handler, Camera, 1500, Color.White);
     InstancedEllipse.PrimitiveRenderType = PrimitiveType.TriangleList;
     LoadContent();
 }
コード例 #8
0
 public Venus(Solarsystem handler, GraphicsDevice device, Camera camera)
     : base(handler, device, camera)
 {
     @Type = CelestialBodyType.Planet;
     Size  = 6050 * 2;
     NumericEccentricity = 0.0067f;
     TurnAroundTime      = 19414166.4f;
     PlanetMass          = 4.869E24;
     PhysicsScale        = 2800000;
     DeltaTime           = 60 * 60 * 24 * 7 * 0.01;
     PortionY            = 0.99;
     PortionZ            = 0.01;
     InstancedEllipse    = new InstancedEllipse(Handler, Camera, 35, Color.White);
     InstancedEllipse.PrimitiveRenderType = PrimitiveType.LineStrip;
     LoadContent();
     Sign = -1;
 }
コード例 #9
0
        public Halleyscher_Komet(Solarsystem handler, GraphicsDevice device, Camera camera)
            : base(handler, device, camera)
        {
            @Type = CelestialBodyType.Planet;
            Size  = 130000f;
            NumericEccentricity = 0.967f;
            TurnAroundTime      = 2375291520.0f;
            PlanetMass          = 2E14;
            PhysicsScale        = 2800000;
            DeltaTime           = 60 * 60 * 24 * 7;
            RenderWithBloom     = true;
            PortionY            = 0.8;
            PortionZ            = 0.5;
            InstancedEllipse    = new InstancedEllipse(Handler, Camera, 35, Color.White);
            InstancedEllipse.PrimitiveRenderType = PrimitiveType.LineStrip;
            ModelPath = @"Comet\LargeAsteroid";

            LoadContent();
        }