Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 635 Bytes

File metadata and controls

11 lines (7 loc) · 635 Bytes

Black Hole Simulation

This simple project simulates the gravitational effects of a black hole on a projectile in a 2D space using HTML5 Canvas and JavaScript. It can demonstrate the sling-shot effect and other gravitational phenomena.

Try it out here: Black Hole Simulation

Features

  • Interactive canvas where users can set the initial velocity of a projectile by clicking and dragging.
  • Real-time simulation of gravitational attraction towards a central black hole.
  • Options to toggle the visibility of the projectile's trace, velocity vector, and acceleration vector.