A Barnes-Hut Simulation is an N-body simulation of gravitational interactions between point particles using the Barnes-Hut algorithm.
- Click to place body
- Click-Drag to set velocity of body
- No collision checks, Bodies exert no gravitation when outside canvas area (but still get attracted back in).
- Press e/d keys while dragging to change mass of body
- Press p to toggle system pause/run.
- Press s to step system once by time step dt.
Check out the Source Code on GitHub.