
Gravity Sandbox
A 2D gravity simulator. Click to spawn celestial bodies with custom size, density, and color, then watch them orbit and collide.
How to use
• Click anywhere on the canvas to create gravitational objects • Use the control panel (top-left) to customize new objects before placing them: - Size: Controls object radius - Density: Affects mass and gravitational pull - Color: Changes object appearance • Objects automatically attract each other based on gravitational forces • Larger and denser objects exert stronger gravitational pulls on nearby objects • Watch as objects orbit, collide, or get pulled together based on their mass and distance • The simulation runs continuously - objects will keep moving and interacting • Mass is calculated as density × radius², so both size and density affect gravitational strength • Objects closer together experience stronger gravitational forces
Reviews
No written reviews yet. Be the first!
More from Interactive

An interactive particle sandbox. Drop sand, water, fire, and more and watch elements interact in a mesmerizing physics simulation.
by mohanad-80

Interactive WebGL fluid dynamics you can play with using your mouse or touch.
by PavelDoGreat





