How it works...

We assign the Waypoint component to every node of the graph, or every node that is worth taking as a waypoint (because the condensation algorithm emphasizes performance).

The waypoints are ordered according to their relevance (such as the height to be used as a sniping or advantage location), and then their neighbors are checked to see which ones are going to be dismissed from the condensation. Naturally, the less valuable waypoints are kept to the end of the computation cycle.

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.