Welcome to the BlackHole Physics Engine! In this interactive web simulation, you take control of a state-of-the-art spaceship navigating through the vastness of space, all while encountering the mysterious forces of a gravitational black hole. Click here to see the BlackHole Engine for yourself!
Use the arrow keys to effortlessly navigate your spaceship across the screen. Feel the thrill of controlling your craft with smooth and responsive movements.
Encounter the gravitational force of a black hole, simulated through a series of concentric rings (circles) surrounding it. The intensity of the pull increases as you approach each ring. The closer you get to the black hole, the stronger the force it exerts on your spaceship.
The gravitational pull is dynamically calculated based on your spaceship's distance from the black hole. As you venture through different rings, each corresponding to a specific distance interval, the pull varies in strength. The logic behind the simulation involves assessing the current distance, determining the appropriate gravitational field, and adjusting the spaceship's position accordingly.
Resource: Gravity effect code can be found here.