Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3D Grav

Gravity simulator desktop app

3D Demonstration

See gravity demo video

3D Demonstration

You can write custom update function.

  • Gravity simulation
  • Simulating charged particles
  • Custom motion law

E.g. magnetic field:

Charge Demonstration

See magnetic demo video

Dependencies

  • 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)

Installation

$ 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

Controls:

  • 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

Android

For Android you can Download APK | Check Virustotal

Android Demonstration

License

GNU General Public License v3.0

About

Gravity simulator desktop app

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages