Physical simulation of particle collision.
Simple variant only registers collisions with the boundaries of the simulated space.
Complex variant also registers collisions between particles. Here particles' size, mass and velocity influence their resulting velocities