I am 0.000000000000000 years old

GRAVITY SIMULATION (N-BODY) · 3 bodies · RUNNING

Explanation:

(summarised):

This is an N-Body gravity simulation, made in C++ using opengl.
The fundementals are simple, we calculate the force on each body from every other body, and then we update their positions based on that.

Then, a flamm paraboloid grid is greated below the objects created a 2D representation of the curvature of spacetime. Obviously spacetime is a 4D thing, but we can only visualise 3D, so we just represent the curvature in the vertical dimension. The more mass an object has, the more it curves spacetime, and the deeper the paraboloid is.

This project was a predessor to the black hole simulation, where I used the same physics engine but added in the geodesic equation to calculate how light moves in curved spacetime.