We started to see the benefit of using NavMeshes with our last recipe, as it allowed our bot to determine whether or not a destination was reachable before it began to move to it.
Now we're going to take it to the next step, and have our bot follow us around the map. This time however, when the bot detects that we are too far away, or it can't reach us directly, it will create a path of its own to reach us.
Open your IDE and prepare to create a new class.
We've covered enough wandering and patrolling up to this point. Why not create an AI which is more friendly, and can follow us around a map? I'm sure you've played a game where one character follows another, whether ...