Manual Off Mesh Links

If we don't want to generate Off Mesh Links along the edge, and we want to force the agents to come to a certain point to be teleported to another plane, we can also manually set up the Off Mesh Links. Here's how:

Manual Off Mesh Links setup
  1. This is our scene with a significant gap between two planes. We placed two pairs of sphere entities on both sides of the plane.
  2. Choose a sphere, and add an Off Mesh Link by navigating to Component | Navigation | Off Mesh Link.
  3. We only need to add this component on one sphere.
  4. Next, drag and drop the first sphere to the Start property, and the other sphere to the End property:

Get Unity Artificial Intelligence Programming - Fourth 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.