An example of using a QuadTree to detect and resolve 2D collisions.