Add method in collision_detector