Added support for polygon and circle collisions.