A cosmic Simulator
- 0 Devlogs
- 0 Total hours
Cosmic Canvas is an interactive 2D physics sandbox that simulates real-time orbital mechanics, gravity vectors, and momentum conservation. Built entirely as a single file using vanilla HTML, CSS, and JavaScript canvas rendering for the NASA x AMD Stardance Challenge.
Project Features:
- Universal Gravitation: Objects exert dynamic gravitational pulls on each other based on mass and distance, calculated frame-by-frame.
- Inelastic Merging Collisions: Colliding bodies merge using conservation of momentum to calculate combined mass and new trajectory vectors.
- Real-Time Data Dashboard: Tracks live object speed, directional velocities, adjustable gravity constants, and active body data.
- Controls & Presets: Features a vector launch system (click and drag) along with preset buttons for binary stars and asteroid belts.