How it works...

Imagine one NavMeshSurface component working as a big node in a graph. By using the NavMeshLink component, we add an edge between two nodes. It's worth noting that the coordinates in Start Point and End Point are relative to the object; thus, they move/rotate with the parent object.

Get Unity 2018 Artificial Intelligence Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.