source code in HTML
source code in PDF

Posteriori (discrete) particle collision

Nasser M. Abbasi

Sept 25, 2012 compiled on — Wednesday July 06, 2016 at 08:29 AM
collision detection using priori (continuous) detection. Supports up to 8 particles.

This Demonstration implements a physics collision detection engine using priori (continuous) collision detection to simulate the motion of particles in 2D. You can have up to 6 particles at same time moving inside a closed unit size square.

Collisions between particles and the walls can be elastic or inelastic. Mass of particles can be the same or different (randomly generated). No friction nor gravity is present in this simulation, hence speed of particles between collisions is constant.