This project provides a 3D visualization of the solar system, illustrating the positions and movements of planets around the sun.
- Realistic rendering of planets and orbits.
- User controls to manipulate the view.
- Simulation of orbital mechanics based on gravitational interactions.
- Python 3.x
- Pygame
- NumPy
- Matplotlib
- Ensure you have Python 3.x installed.
- Install the required dependencies:
pip install pygame numpy matplotlib
- Run the simulation:
python solar_system.py
The simulation uses Kepler's laws of planetary motion and Newton's law of universal gravitation to calculate the movement of each planet. The position of each planet is updated in real-time based on its orbital parameters.