Install Visual Studio 2019-2022: https://visualstudio.microsoft.com/downloads/
Install Git: https://git-scm.com/download/win
Install SFML-2.5.1 to C:/SFML-2.5.1
: https://www.sfml-dev.org/download/sfml/2.5.1/
Then follow the instructions below:
Open up a terminal of choice and input the following commands:
cd path/to/parent/folder
git clone https://github.com/Arav0001/GravSim.git
cd GravSim && start GravSim.sln
- After launching you should see a grid on your screen.
- To maneuver around the grid you can use WASD.
- To create a particle click with your left mouse button.
- Once you have clicked, drag your mouse to a position to make the radius of your particle.
- Then use the Up and Down arrow keys to increase or decrease the mass of the particle.
- Once you have modified all the parameters of your particle you can click ENTER to finalize the creation.
- If you ever want to pause the simulation you can just click SPACE at any time (except during particle creation) to pause the simulation.
- Make more particles and have fun experiencing gravity in real-time!
W - Move view UP
A - Move view LEFT
S - Move view DOWN
D - Move view RIGHT
LEFT CLICK - Create particle
ENTER - Confirm create particle
UP ARROW - Increase mass
DOWN ARROW - Decrease mass
ESCAPE - Quit application
F1 - Toggle statistics
F2 - Toggle arrows
F3 - Toggle labels
F4 - Toggle help menu