- Put the level in place.
- Create an empty game object and call it NavMesh.
- Add the NavMeshSurface component to the NavMesh object.
- Hit Bake.
- Select all the obstacles.
- Add the Nav Mesh Obstacle component to them.
- Check the Carve option in the component.
- Select the dynamic obstacles.
- Uncheck the Carve Only Stationary option.
- Configure each obstacle as needed, using the other options in the component.
How to do it...
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.