/planets-simulator

Simulate gravitational interactions with Python and OpenCV

Primary LanguagePython

planets-simulator

Simulate gravitational interactions with Python and OpenCV

How to use

First of all you need to choose how much planets do you want. Open simulator.py and edit the n value. Before you need to choose mass, radius, initial x, initial y, initial x velocity, initial y velocity, color and if the planet has ring or not. After that you can run the program and see your simulation!

Have fun!

Author

Pedro Cleto - pedrocaf@ufmg.br