more robust margins in collision detection