5 Nov 2016
This program is designed to simulate planets/particles in two dimensional space. It's written in C using OpenGL and SDL.
The goal of this project was to recreate my original in C. With C being much closer to the hardware, better performance will be achieved.
Make sure you have
gcc installed on your computer.
git clone https://github.com/logiclogue/gravity-simulator cd gravity-simulator make
The program will begin compiling. Once compilation has finished, the binary will
be in the
build/ folder. In order to run the program, type
Assuming you're on a Unix machine. It's only been tested on Arch Linux.
Modification of the SDL and OpenGL header paths may be required to execute on
The program currently doesn't have much functionality. To change the initial
locations of the planets, you'll have to edit
src/main.c and recompile.
Copyright (c) 2016 Jordan Lord