Skip to content

A cool and simple gravity simulation software with real time particle rendering built with SFML and C++.

License

Notifications You must be signed in to change notification settings

Arav0001/GravSim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GravSim

Building

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

How To Use

  1. After launching you should see a grid on your screen.
  2. To maneuver around the grid you can use WASD.
  3. To create a particle click with your left mouse button.
  4. Once you have clicked, drag your mouse to a position to make the radius of your particle.
  5. Then use the Up and Down arrow keys to increase or decrease the mass of the particle.
  6. Once you have modified all the parameters of your particle you can click ENTER to finalize the creation.
  7. If you ever want to pause the simulation you can just click SPACE at any time (except during particle creation) to pause the simulation.
  8. Make more particles and have fun experiencing gravity in real-time!

CONTROLS

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

About

A cool and simple gravity simulation software with real time particle rendering built with SFML and C++.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published