During the recent development of "vibe-coding," I wanted to continue to refine my raw-skills. This project is the first iteration of my "NO-AI" projects to continue developing my personal skills.
A Python-based physics simulation that demonstrates ball movement, collisions, and explosions using Tkinter.
- Realistic physics simulation with gravity and elastic collisions
- Interactive velocity input
- Explosion effects based on impact velocity
- Ball-to-ball collision detection and response
- Energy loss through bounce damping
- Python 3.x
- Tkinter (usually comes with Python)
- Clone the repository:
git clone https://github.com/baasilali/explosions.git
cd explosions- Run the simulation:
python explosions.py- Enter a velocity value in the text field
- Press Enter or click the "Throw" button to launch the ball
- Watch the ball explode upon impact with the wall
- Use the "Refresh" button to reset the simulation
The simulation implements:
- Gravity effects
- Elastic collisions between balls
- Wall bouncing with energy loss
- Velocity-based explosion particle generation
- Particle-to-particle collisions