Show HN: I built an interactive 3D three-body problem simulator in the browser

14 comments

Feedback : The ui covers more than half my screen on mobile browser

+1 Please add a hide button for the UI. I love the animation. Unfortunately can’t see it fully

I set the zoom to 50% in the browser and was able to see well.

When I hit Random 3d to see a normal three-body they yeet out of existence far far away.

OP's account posts LLM generated comments almost exclusively, this is likely not an exception

The tri-Solarians could have just used this!

They did :) That's why they said fuck that and moved to Earth.

- i have seen a tonne of these

- would be nice if someone at this point actually made a tutorial on how to go about making one from scratch with threejs

Very cool! Interesting how the choice of solver affects the solution. Euler doesn't handle misbehaved equations very well. You can see this in the Helix setup where the bodies just fly off.

Random3D seems to always have all the stars heading off to infinity.

Occasionally two will tight spiral off together.

(Experimentally 5/250, including 1 cool wide, almost flat spiral.)

Very cool! nice to be able to export json too

No Weber very sad.

needs a WebXR bookmarklet

Had a similar idea and built a prototype for it. :)

Notes re: Multi-body problems on "Show HN: Browser-based interactive 3D Three-Body problem simulator" (2025) https://news.ycombinator.com/item?id=45981336 which has Velocity Verlet integration method, 4th-order Runge-Kutta (RK4), and Kepler solvers

[dead]