Movement AI

Hey guys how’s it going? I’m trying to create an enemy AI for my game everything works fine the enemy follows the player, attacks etc. So I thought of placing a wall (yup a big cube with a rigidbody) It could stop the enemy projectiles but the enemies could penetrate it. How can I make the wall an obstacle? And how can I make the enemy turn around it, see an opening and continue following the player?

I suggest using A* path-finding. It has a tutorial and I think thats what you need to look at.