N-Body Gravity Simulation

Category:

Academia

Languages:

C, C++

Technologies:

OpenGL, Xcode

Description:

Using OpenGL and C, I created a program where you could fly around in space. Every planet and star has mass and accurately follows Newton's laws of motion and gravitation, every object is affected by the gravitational pulls from every other object. You can crash into objects to absorb their mass, allowing you to, sometimes, trap planets in an orbit around you.