Inspiration

To learn how planets move in our solar system

What it does -

Our program is a full simulation of our solar system and how the planets move in an orbit due to gravity.

How we built it

In python, we used the libraries turtle and json. Json was used to store the information on each of the planets, such as mass and perihelion. Turtle was used for the animations and the actual window for the simulator. We also used a couple of the math library and default math functions from python in order to calculate the forces on the planets to cause the elliptical movement in orbit.

Challenges we ran into

  • Planets moving randomly around the sun
  • Planets flying into the sun
  • The sun moving off the screen
  • The planets not showing up
  • Not being able to see a few planets
  • Planets moving too fast
  • Not being able to read from a json file

Accomplishments that we're proud of

  • Being able to make the planets move in an elliptical route
  • Being able to read from a json file
  • Being able to have steady animations with no lag

What we learned

We learned about how planets move and what causes them to move in specific ways.

What's next for Space Simulation

Next, we will be adding comets to our solar system, having interactive hovers on the planets for information, and having rockets to fly around the solar system.

Built With

Share this project:

Updates