Using a NavMesh (navigation mesh) enables the agent (users of the NavMesh) to take the most optimal route for traversing a game scene. The NavMesh tells the agent what the movement boundaries are, when it needs to walk up stairs, jump a ditch, open a door or avoid an obstacle to get to the designated location. Let’s get started by setting up the foundation with a NavMesh and some waypoints.