A simple particle collision simulator inside multiple containers in 2D. you can drag, create, zoom and scroll the screens
For collisions, the two-dimensional elastic collision formula was used, obtained from: https://en.wikipedia.org/wiki/Elastic_collision
- Python 3
- Pygame
Just run the main.py file and play.
simulation parameters
In the same main file you can change the strength of the mouse, the screen size, the number of environments, the maximum and minimum, the number of particles per environment, the zoom applied and the delay to add a particle.