Real Gravity
We were inspired by a mutual interest in physics, and especially in gravity. Most people think of gravity only in the context of earth, so much so it is often thought of only as a force. We wanted to create an educational simulation that show the true effects of gravity: the warping of space and time.
How we did it
The simulation was written in Javascript, using the three.js library to perform the three dimensional animations. First, we simply encoded the correct equations and values for determining the effects of gravity on a body, then the laws of physics took over to create the orbit of the planets. We then implemented animated lines to simulate the gravity wells formed by the orbiting masses in the simulation.
Enjoy!
Log in or sign up for Devpost to join the conversation.