Collision detection framework, untested