A web-based physics simulation featuring an exploding ball engine with realistic physics, collision detection, and beautiful visuals.
- Physics Engine: Powered by Matter.js for accurate physics simulation
- Exploding Balls: Launch a ball that explodes into multiple mini balls
- Customizable Velocity: Set X and Y velocity values
- Collision Detection: Realistic collisions between balls and walls
- Clean UI: Modern, gradient-based design with glassmorphism effects
- Interactive Controls: Adjust explosion force and number of mini balls
-
Start the web server:
python3 server.py
-
The application will automatically open in your browser at
http://localhost:8000 -
Enter velocity values and click "Launch Ball" to see the explosion!
- Velocity X: Horizontal velocity of the ball
- Velocity Y: Vertical velocity of the ball
- Mini Balls: Number of mini balls created on explosion (1 - 100, recommended: 5-50)
- Launch Ball: Fire a new ball with the specified velocity
- Reset: Clear all balls and reset the simulation
Note: The explosion force is automatically calculated based on the ball's impact velocity for realistic physics.
- Uses Matter.js physics engine for accurate physics simulation
- Canvas-based rendering for smooth animations
- Responsive design that adapts to window size
- Real-time collision detection and response
