SolarSystemSimulation is a C# application that visually simulates the motion of celestial bodies in a solar system. The simulation uses OpenTK for rendering and physics calculations, displaying planets orbiting the Sun based on real gravitational forces.
- Realistic gravitational physics for planetary motion.
- 3D rendering of the solar system using OpenTK.
- Support for textures to enhance visualization.
- Adjustable simulation speed and zoom levels.
- Toggleable background and data display for enhanced visualization.
- User input handling for interaction.
Ensure you have the following installed:
- .NET 6.0 or later
- OpenTK library (
OpenTK.Graphics
)
git clone https://github.com/n1k0m0/SolarSystemSimulation
- Arrow Keys: Adjust zoom and scale.
- W/S: tilt x axis
- A/S: tilt y axis
- Q/E: tilt z axis
- Page Up/Down: Change simulation speed.
- F1: Reset the simulation.
- F2: Toggle planetary data display.
- F3: Toggle background.
- F4: Toggle labels.
- Escape: Exit the simulation.
SolarSystemSimulation/
¦-- Program.cs # Entry point for the simulation
¦-- SolarSystemWindow.cs # Handles rendering and user interaction
¦-- AstronomicalBody.cs # Defines celestial bodies and physics calculations
¦-- Textures/ # Folder containing planet textures
¦-- LICENSE # Licensing information
¦-- README.md # This file
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
- OpenTK for 3D rendering and graphics support.
- NASA/JPL for accurate planetary data.
Pull requests and suggestions are welcome! If you find a bug or have ideas for enhancements, feel free to open an issue.