Tutorial 3


The main goal of this work was to experiment with the Navigation system in Unity. Using the area from the previous self study, a navigation mesh was calculated. This allows the agents to know where they can and can't go without having to do lots of costly calculations by themselves.

Using the same character created previously with the same animations, I set up some navigation agents that would try to follow the player. I then added the functionality for the player to spawn them by looking somewhere and clicking.

Next, I added an obstacle that would disrupt the pathing of the navigation agents by moving between two points.


The agents are a pretty quick to realize that the way has been blocked, and start trying to find other ways around. As soon as the obstacle moves out of the way, they quickly work out the new shortest path.