Hey @EarthCK!
Instead of checking for nearby obstacles, you can check if the character is about to hit an obstacle using the movement vector.
Check out this post of mine to see how
(Also see my following posts under the same topic)
Hope this helps!