2D n-body problem simulator using C++ and SFML
- install SFML (MacOS (using Brew), Linux)
in root dir, execute commands:
- make (to compile)
- make run (to run)
or in one command:
- make ra (to compile and run)
Makefile has been tested on MacOS & Debian Linux
- use WASD or arrow keys to navigate
- zoom out: J
- zoom in: K
- add plants at the top of the main function, eg.:
Body b1(mass, radius, position, velocity, stationary?, Color);
and add the planet toBody bodies[1] = {b1};