Skip to content

codebybishwa/Planet-Simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

🌌 Planetary Orbit Simulation

This project is a simulation of the solar system with multiple planets orbiting the Sun. The simulation uses real astronomical data (planet masses, orbital velocities, and distances) scaled down to fit within the Pygame window.

🚀 Features

  • Realistic planetary orbits based on gravitational forces.

  • Includes planets: Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, and Neptune.

  • Zoom feature: Allows you to zoom in and out to view planets.

  • Gravitational Lines: Lines from the Sun to the planets for visual effect.

    NOTE: The simulation is scaled, so you might need to zoom out to see all the planets (especially the outer planets like Jupiter, Saturn, Uranus, and Neptune).

🛠️ To Run:

  1. Install Pygame

  2. Download the .py file and run it. A pygame window will pop up to display the simulation

    image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages