The final stage of collision detection