/BlackHole_Engine

Welcome to the BlackHole Physics Engine, a dynamic black hole physics engine designed to simulate the gravitational pull of a black hole. Control a spaceship using arrow keys as you navigate through space and experience the dynamic forces represented by concentric rings surrounding the black hole.

Primary LanguageJavaScript

BlackHole Engine 🚀🌌

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!

How It Works

Spaceship Control 🛸

Use the arrow keys to effortlessly navigate your spaceship across the screen. Feel the thrill of controlling your craft with smooth and responsive movements.

Gravitational Pull 🌀

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.

Gravitational Logic 🌐

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.