add support for 2d collisions