Skip to main content

Aesthetic Collisions

Observe the beauty of Chaos.

Jia Ming
A system of particles colliding is chaotic, so running the exact same code will have drastically different results. This is due to variations in the delay between frames and the usage of floating point numbers as coordinates, as I use a simple collision checker. Rotational momentum is not implemented, and collisions are perfectly elastic. I gave the particles an order and connected them with straight lines to form a polygon from which I recursively drew smaller polygons inscribed in each other to make it look nice. To spice things up, change the settings in ``: for a start try setting edges=16.


pygame 843 2d 784 python 342 physics 61 simulation 55


Home Page


Aesthetic Collisions 1.0.1 — 3 Aug, 2020 account Comments