Using Off Mesh Links to connect gaps between areas
Sometimes, there may be some gaps in the scene that can make the NavMeshes disconnected. For instance, the Agents do not find a path in our previous examples if we do not tightly connect the slopes to the walls, so we need to make it possible to jump over such gaps. In another example, we may want to set up points where our agents can jump off the wall onto the plane below. Unity has a feature called Off Mesh Links to connect such gaps. Off Mesh Links can be set up manually or can be automatically generated by Unity's NavMesh generator.
Here's the scene that we're going to build in this example. As you can see in Figure 8.14, there's a small gap between the two planes.
In this section, we will learn how to connect these two planes using Off Mesh Links.