How to check if AI stuck on the wall?

My agent / ai cant get out of the wall border once enter it, increasing the radius nor reduce the border just causing another issues.

How to fix this ? or is there any way (with script) to check if the AI get stuck in the wall or not, like checking if it can reached player? so I can create custom script to make AI get out of that wall border.


Is the middle of the truck navigable?


I already fix it

I already fix it guys,

What I do is increasing Circle Collider 2D radius bigger, a bit close to AiPath / RVO radius and Circle Collider 2D radius is smaller than RVO radius.