This project will provide an opportunity to observe in real time physical phenomena described further and create your own simulations. Such physical phenomena as Newton's law of universal gravitation, the law of conservation of momentum are taken into account. Also, the project's features are the scalability of the simulation surface and free movement on it.
I am not yet able to take into account General relativity. Perhaps the speed of gravitational interaction will be used, which is theoretically equal to the speed of light. In the future, it is possible to branch in the form of using the pymunk module to calculate collisions.
Active development is underway on the test branch. English is supported. I recommend using SQLite Studio to work with the database. Write your suggestions or ideas, I will be grateful.
-
Install Python 3.7.7 or greater.
-
Open your terminal in repository's folder.
-
Type these commands to install modules and run the code:
pip install -r requirements.txt
python main.py
OR
python -m pip install -r requirements.txt
python main.py