Gravity simulator desktop app
See gravity demo video
You can write custom update function.
- Gravity simulation
- Simulating charged particles
- Custom motion law
E.g. magnetic field:
See magnetic demo video
- Kivy framework - open source Python library for developing apps
- NumPy - fundamental package for scientific computing with Python
- mgen - Convenient matrix generation functions
- Buildozer - tool for creating APK for Android (optional)
$ git clone https://github.com/zotho/3D_Grav.git
$ cd 3D_Grav
$ python3 -m venv env
$ source env/bin/activate
$ pip install --upgrade pip
$ pip install numpy mgen kivy
$ python3 main.py
- LMB – add planets
- Shift + LMB(or arrows) – rotate
- D – show/hide debug
- Arrows and spacebar – control simulation speed
- Q – quit
To exit virtual environment
$ deactivate
For Android you can Download APK | Check Virustotal
GNU General Public License v3.0