Modular Collision Detection