Original Post
Hello, I've making AI for a game. But there's this weird thing that happens when the player passes the while it faces the opposite direction the player is facing, sorta like cars passing each other on a two way street but one is stationary. What happens is the AI will veer into the players lane (keeping the car analogy), but past the player so that it is behind him. The AI will then turn to face the player, who is walking away from the AI, catch up, get within killing distance and game over. What makes that weird is that the AI should be within killing distance even before moving behind the player. Any ideas on why this might happen?
I am using:
Unity
Behave behavior tree utility
Aron Granberg's A* pathfinding project
I am using:
Unity
Behave behavior tree utility
Aron Granberg's A* pathfinding project