August 2018
Intermediate to advanced
794 pages
28h 4m
English
The most efficient way for games to work with Navigation Meshes is to pre-calculate the costs of polygons in the game world; this is known as Baking and is performed at Design-Time, before we run the game.
However, sometimes there will be features in the game that we wish to use to influence navigation decisions and route planning differently at different times in the game, that is, dynamic Run-Time navigation obstacles. Unity provides a NavMesh Obstacle component, which can be added to GameObjects, and has features such as "carving out" (temporarily removing) areas of a NavMesh to force AI-Agents to recalculate paths that avoid areas blocked by GameObjects with NavMesh Obstacle components.
Read now
Unlock full access