Interactive Music Player
A particle simulation showing the effects of gravity on masses in 3D space.
Each object applies a force on every other object in the system.
When objects collide they become one mass with an increased gravitational pull.
Sizes are based on masses and densities and gravitational forces are based on Newton's Law of Universal Gravitation:
This is an O(n2) system (every particle interacts with every other particle) however the calculations are completed on the GPU to optimize performance.
Controls
(These are temporary. It will be more interactive in the future.)
SHIFT + LEFT MOUSE DRAG
Rotate shapes around center.
MOUSE WHEEL
Zoom in/out on center.
SPACE BAR
Start/Stop Music.