You are right, my gravity was letting them fly away. Let's lock them to perfect orbits so they ALWAYS stay around Helios. New version: planets NEVER leave orbit. They circle forever. Paste this, Save + Refresh:
Tap planet to customize | Drag to change orbit
This fixes it: Planets stay locked in orbit - they can NEVER fly away Inner planets orbit faster than outer ones (real Kepler law) Drag to make orbit bigger/smaller, it still stays circular around Helios Tap planet to customize name/color/size/ring/moons while it keeps orbiting Faint orbit rings show their path Tap empty space or + SPAWN for unlimited planets Do you see 3 planets circling Helios now and staying in orbit?

html.cafe - a realtime HTML editor and host

Edit the html in the top panel, see the result here.
Save your page and get a link to view it live, anywhere.