logoalt Hacker News

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

57 pointsby amrutha_last Saturday at 12:43 AM18 commentsview on HN

Comments

neondudetoday at 1:51 AM

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

modelesstoday at 3:14 AM

How many of these are there? https://trisolarchaos.com/

koolalatoday at 2:45 AM

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

efilifetoday at 5:32 AM

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

vivzkestreltoday at 5:25 AM

- 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

curseofcasandratoday at 1:08 AM

The tri-Solarians could have just used this!

show 1 reply
hazrmardyesterday at 11:17 PM

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.

hermitcrabyesterday at 10:50 PM

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

show 1 reply
ubezonyesterday at 10:51 PM

Very cool! nice to be able to export json too

kordlessagainyesterday at 11:44 PM

No Weber very sad.

show 1 reply
kurthonglast Saturday at 12:54 AM

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

westurneryesterday at 11:23 PM

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

kurthonglast Saturday at 12:54 AM

https://solgrbit.d9ng.co.kr/ Had a similar idea and built a prototype for it.

mileszhangtoday at 1:38 AM

[dead]