Back to All Projects

Black Hole Environment

Nayaneka Y - BCA 2nd Year

This project is an interactive 3D simulation of a black hole using p5.js, where users can adjust the black hole's mass, spin, and charge. The mass affects the black hole’s gravity, making its pull stronger and the event horizon larger as the mass increases. The spin controls how fast the black hole rotates, with a faster spin changing the shape of the event horizon and possibly creating powerful energy jets.


The charge influences how the black hole interacts with nearby charged particles, either attracting or repelling them. Users can observe how these changes impact orbiting planets, causing them to stretch and break apart as they get closer. The event horizon is clearly shown, and the size of the accretion disk adjusts with the mass. Educational cards explain key concepts like Hawking radiation, making the simulation an engaging way to explore black hole behaviors.

Play Simulation