This Cosmic Gravity Simulation is an interactive web-based application that visualizes the effects of gravity in a cosmic environment. It combines realistic physics with artistic expression to create a mesmerizing experience. Here's a quick overview:
Key Features
Gravity Simulation: Particles interact with each other and central masses (black holes) based on Newton's Law of Universal Gravitation (F = G * (m₁ * m₂) / r²).
Interactive Controls:
Left Click: Add particles to the simulation (adjustable with the slider).
Right Click: Create a black hole that attracts particles.
Space Key: Clear the screen and reset the simulation.
Emergent Behaviors:
Orbital Mechanics: Particles orbit around black holes.
Gravitational Slingshots: Particles gain speed when passing near black holes.
Particle Collisions: Particles interact and merge based on their mass.