Restructured collisiondetection