ogoregen / planets

2D gravitational attraction simulation

Home Page:https://flighty.xyz/planets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a simple 2D gravitational attraction simulation. Collisions are presumed to be happening on the centers of the bodies and result in merging. If a body reaches a certain radius, it collapses into a black hole.

Also included is a p5.js version. See it working here.

Feel free to let me know about any issue or idea.

planets

Two planets orbiting a black hole

About

2D gravitational attraction simulation

https://flighty.xyz/planets

License:The Unlicense


Languages

Language:JavaScript 50.5%Language:Processing 49.5%