Skip to content

This is a python simulation of gravity on different planets.

License

Notifications You must be signed in to change notification settings

Timmy0x/python-gravity-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Python Gravity Simulation

This is a python simulation of gravity on different planets.


Research

Guiding Question: How will the different amounts of gravity affect the output (a work of art) of the experiment?

I looked at a variety of projects that aimed to simulate gravity, and there seem to be a few methods. I can drop the ball off a cliff, which I program in Python, and record how it reacts bouncing around. I can draw a box and then bounce the ball around the box. (Ended up choosing).

When I looked at the Python documentation, I found out that there were many built-in functions that would help me program my Turtle. Those built-in functions include:
• penup()
• hideturtle()
• goto()
• color()

I was thinking about different ways to run this simulation, and I had two options. I could run the simulation at every frame, moving the turtle and all, or I could create a function that moves the turtle and executes it every time the ball hits the side of the box. I ended up deciding on the latter for the sake of simplicity.

About

This is a python simulation of gravity on different planets.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages