Skip to content

a simple particle simulator made in python with pygame

Notifications You must be signed in to change notification settings

Asaad-E/particles_simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Particles simulation

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

Dependencies

  • Python 3
  • Pygame

Usage

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.

About

a simple particle simulator made in python with pygame

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages