collision detection

This application demonstrates a simple technique for determining when a physical object of interest has collided with another object. Ideally, one can receive this information directly from the physics engine. However, in many contexts, the only situation in which an object has high acceleration is when collisions have occured. Therefore, one can simply get an empirical estimate of acceleration from successive velocity vectors, and use the magnitude of the result to guess when there has been a collision.

1-2-three
example 24: collision detection