Hello, I have been working on AI for a game that used behavior trees and an A* pathfinding system. I’ve run into a problem where the AI wanders around. It seems that the pathfinding isn’t responding quick enough to follow a moving player it works fine when the is given the position of the player, but when it can only follow when it can see the player then it just can keep up. What are some solutions to this.
A quick fix that might work, I haven’t tried this so don’t rely on it. You could possibly tell your AI to navigate to a point a little in front of the player then wait for the algorithm to catch up so it looks as though the AI is following the player. Just a quick thought.
hmm that could work, thanks.