AI avoiding obstacles

Hi, I’m making a bat who chases the player. The thing is; I don’t want the bat to fly through collisions, so the problem is when I don’t let it fly through collisions, it gets stuck beside it. Therefore I want it to detect collsions and then surpass it. I have been able to make a line trace by channel to detect the obstacles, but can’t figure out to make it avoid the obstacle in the best possible way.

So how would I do it from here?