//Die Region "Create World" erstellt eine "GameWorld"-Klasse. In ihr werden ebenfalls Körper, die im Quellcode stehen, der welt hinzugefügt. #region Create World private void CreateWorld() { world = new GameWorld(); //Hier werden die Körper definiert und hinzugefügt #region Celestrialbodies Added in Code var Sonne = new CelestrialBody() { Name = "Sonne", Radius = 695508000, Mass = (float)(1989 * Math.Pow(10, 27)), Position = new Vector3D(0, 0, 0), Velocity = new Vector3D(0, 0, 0), //14.4 BodyColor = Color.FromRgb(255, 204, 0) //255, 255, 0 }; var Erde = new CelestrialBody() { Name = "Erde", Radius = 3397000, Mass = (float)(597 * Math.Pow(10, 0)), //22 Position = new Vector3D(-149579000000, 0, 0), //149579000000 152097703653.436 Velocity = new Vector3D(0, 29781, 0), //29781 //29293.3398 BodyColor = Color.FromRgb(0, 102, 255) //0, 178, 238 }; var DoppelStern = new CelestrialBody() { Name = "Doppelstern", Radius = 695508000, Mass = (float)(1949 * Math.Pow(10, 27)), Position = new Vector3D(149984000000f * 2.5, 0, 0), Velocity = new Vector3D(0, -15781, 0), BodyColor = Color.FromRgb(185, 155, 0) }; var Mond = new CelestrialBody() { Name = "Mond", Radius = 1737000, Mass = (float)(7349 * Math.Pow(10, 18)), Position = new Vector3D(-152098320000 - 384400000, 0, 0), Velocity = new Vector3D(0, 29293.43 + 1000, 0), BodyColor = Color.FromRgb(166, 166, 166) }; var Merkur = new CelestrialBody() { Name = "Merkur", Radius = 2439764, Mass = (float)(3.301 * Math.Pow(10, 23)), Position = new Vector3D(-69817078612.5807, 0, 0), Velocity = new Vector3D(0, 38861.52575, 0), BodyColor = Color.FromRgb(205, 186, 150) }; var Venus = new CelestrialBody() { Name = "Venus", Radius = 6051590, Mass = (float)(4.869 * Math.Pow(10, 24)), //24 Position = new Vector3D(-108941853970.944, 0, 0), //-108941853970.944 Velocity = new Vector3D(0, 34786.9444, 0), //34786.9444, Kreis = 34896.6 BodyColor = Color.FromRgb(131, 139, 131) //210, 180, 140 }; var Mars = new CelestrialBody() { Name = "Mars", Radius = 3397000, Mass = (float)(6.419 * Math.Pow(10, 23)), //23 Position = new Vector3D(-249228732634.771, 0, 0), Velocity = new Vector3D(0, 21973.3010, 0), BodyColor = Color.FromRgb(255, 64, 64) }; var Jupiter = new CelestrialBody() { Name = "Jupiter", Radius = 71492680, Mass = (float)(1.899 * Math.Pow(10, 27)), //27 Position = new Vector3D(816081448223.773, 0, 0), //-778360000000, 816081448223.773 Velocity = new Vector3D(0, -12440.8941, 0), //13055, -12440.8941 BodyColor = Color.FromRgb(255, 99, 71) }; var Saturn = new CelestrialBody() { Name = "Saturn", Radius = 60267140, Mass = (float)(5.685 * Math.Pow(10, 26)), Position = new Vector3D(1503983436445.240, 0, 0), Velocity = new Vector3D(0, -9136.4804, 0), BodyColor = Color.FromRgb(255, 218, 185) }; var Uranus = new CelestrialBody() { Name = "Uranus", Radius = 25559000, Mass = (float)(8.683 * Math.Pow(10, 25)), Position = new Vector3D(-3006389384147.660, 0, 0), Velocity = new Vector3D(0, 6485.9721, 0), BodyColor = Color.FromRgb(187, 255, 255) }; var Neptun = new CelestrialBody() { Name = "Neptun", Radius = 24764000, Mass = (float)(1.0243 * Math.Pow(10, 26)), Position = new Vector3D(-4536874314626.520, 0, 0), Velocity = new Vector3D(0, 5385.6563, 0), BodyColor = Color.FromRgb(65, 105, 225) }; var Pluto = new CelestrialBody() { Name = "Pluto", Radius = 1188000, Mass = (float)(1.303 * Math.Pow(10, 22)), Position = new Vector3D(7375912320000.00, 0, 0), Velocity = new Vector3D(0, -3676.71, 0), BodyColor = Color.FromRgb(166, 166, 166) }; var Komet = new CelestrialBody() { Name = "Komet", Radius = 3000000, Mass = (float)Math.Pow(10, 2), Position = new Vector3D(14 * 149600000000f, 7 * -149600000000f, 0), Velocity = new Vector3D(-25000, 10000, 0), BodyColor = Color.FromRgb(235, 150, 255) }; world.AddCelestrialBody(Sonne); //world.AddCelestrialBody(DoppelStern); //world.AddCelestrialBody(Merkur); //world.AddCelestrialBody(Venus); world.AddCelestrialBody(Erde); //world.AddCelestrialBody(Mond); //world.AddCelestrialBody(Mars); //world.AddCelestrialBody(Jupiter); //world.AddCelestrialBody(Saturn); //world.AddCelestrialBody(Uranus); //world.AddCelestrialBody(Neptun); //world.AddCelestrialBody(Pluto); //world.AddCelestrialBody(Komet); #endregion }