Hey! I'm developing a shooter game and I've made an AI that keeps its distance from the player. Which means if the player gets within a certain distance of an enemy, they will stop moving, and then back away if the player comes any closer.
I have one issue though...while the enemy's back up, they do not stop for solid walls, so they just move through them. IM not sure how to solve this problem.
Any help would be GREATLY appreciated