Skip to content

gecitemre/gravity

Repository files navigation

CodeQL Badge

Gravity Simulator

Simulates the interaction of round entities on a 2D plane, implementing collision and gravitational physics. NumPy is used for vector and math calculations, Tkinter is used for the GUI.

Check out the Youtube Demo!

Also, there is a web version of this project. You can try the Web version, or view the source code of the web version at https://gecitemre.github.io/web-gravity/

Usage

To run the simulator, run gravity.py with python. After running the program, Left click to create new planet, press to hold a planet, right click to delete planet, scroll when your cursor is on a planet to feed or shrink a planet.

About

python - numpy gravity simulation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages