Gravity Simulation
This is an interactive gravity simulation where you can create and observe celestial bodies interacting with each other.
How to Use:
- Add Tool: Click and drag to create a new celestial body. The drag direction and length determines the initial velocity
- Add (orbit) Tool: Click and drag to create a celestial body with orbital velocity around existing objects
- Remove Tool: Click on celestial bodies to remove them from the simulation
- Info Tool: Click on celestial bodies to view their properties (type, radius, mass, velocity, age, temperature)
- Temp Tool: Click on celestial bodies to control their temperature using sliders or preset values
- Right-click and drag to pan the view
- Use mouse wheel to zoom in/out
- Press Reset to clear all celestial bodies
- Press Pause to stop the simulation temporarily
The simulation uses a simplified gravitational model where objects merge upon collision, conserving momentum.
Runge-Kutta 4 is used for numerical integration. The application is heavily vibe-coded. :D
Version