Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ypatel2022/gravity-simulation

A gravity simulation using Netwon's Laws of physics.
https://github.com/ypatel2022/gravity-simulation

cpp sfml simulation

Last synced: about 14 hours ago
JSON representation

A gravity simulation using Netwon's Laws of physics.

Awesome Lists containing this project

README

        

# SFML Gravity Simulation

This is a gravity simulation using Newton's Laws that was created in C++ and rendered using [SFML](https://www.sfml-dev.org/).

![Gravity Simulation](./demo1.png)
![Gravity Simulation](./demo2.png)
![Gravity Simulation](./demo3.png)

# Usage

To run the simulation, you can download from the releases page or build from the source code.

When you launch the simulation, you will be presented with a window that is completely still and nothing happens. To start/stop the simulation, press the `Spacebar` key.

If you want to zoom into/out of the simulation, scroll in/out with the mouse wheel. To pan around the simulation, hold down the `Left Mouse Button` and drag the mouse.

To exit the program, press the `Escape` key.

# Edit the simulation

To make edits to the simulation, launch the `SFML Tutorial.sln` solution file and open in Visual Studio 2019. From here open the `SFML Tutorial.cpp` file and start editing 🚀