N-Body Simulator - Interactive 3 Body Problem Simulation

Wait 5 sec.

Got into the Three-Body Problem books and wanted to build a browser-based N-body simulator. Not trying to be serious or completely scientifically accurate - just wanted something fun to play with and watch chaos in 3D. I'm sure tons of these exist already, but still a fun way to waste a few minutes even if you’ve seen one already. How to use: Adjust the number of bodies (2-10) with the slider Change individual masses with the sliders on the left Pause (spacebar) and click any body to edit its position, velocity, and mass Use timeline controls to step forward/backward through time Try the Figure-8 preset for a stable ∞ orbit Drag to rotate camera, scroll to zoom or change the view to follow a body If you find interesting stable orbits or chaotic patterns, use the "Share Configuration" button to get a URL. Would love to see what configurations people find! Fair warning: most random configs end with bodies flying off into infinity.   submitted by   /u/sticksstickly [link]   [comments]