/gravity

2D Universe simulation using C++ & SFML.

Primary LanguageC++

Gravity Simulation

gravity gif

Controls

  • Left click (on nothing) : Create a planet
  • Left click and move (on object) : Move a planet
  • Right click and move : Move the view
  • Scroll : Zoom
  • Press Down : Slow down time
  • Press Up : Speed up time

Dependencies

sudo apt install build-essential libsfml-dev

Installation

git clone https://github.com/volnt/gravity.git
cd gravity/build
cmake ..
make

Once the make is done you can launch the program with ./universe.

Contribute

Any contribution is welcome. There is a small list of issues that are ideas/bugs on the top of my mind but feel free to add issues about your own ideas.