Gravity 2D: Planet

Each particle interacts gravitationally with all other particles. Occasionally, a small particle can be seen orbiting the "planet" which itself is orbiting the "sun."

This is based on some Coding Train videos (here and here and here) by Daniel Shiffman.

All Gravity 2D apps: