Gravity Game Tech Demos

Around Christmas 2013 I became obsessed with the game Osmos on my phone. The physics system they used was mesmerizing. So, of course, I decided to implement it in JavaScript. I use kineticjs for the view, but I wrote all of the model code.

This page outlines some of the scenarios I came up with while building/testing the system. I'll include a video and a link to the interactive demo for each one.

Basic orbit

Description:

Play!

Two orbiting rings

Description:

Play!

Dynamic Gravity Mass

Description:
In the first two simulations the mass generating a gravitational field is totally static. In this simulation we make the gravity mass dynamic. It reacts to the masses that collide with it.

Play!

Osmos clone

Description:

Play!

Gravitational Forcefield

Description:

Play!

User Controlled Gravity Well