Cost Modifiers: NavMeshModifier & NavMeshModifierVolume in Depth | AI Series 25
Published: 10 Aug 2021
In this tutorial I go over how to set up NavMeshModifiers and NavMeshModifierVolumes to assign different NavMesh Area Costs to different sections of your NavMesh to influence how NavMeshAgents will traverse your world. Specifically in this video we're looking at a flat plane with 2 main area types - Walkable and Water. Water we're making have a significantly higher cost than the Walkable area to have our NavMeshAgents prefer walking over a bridge instead of directly through a small river.
We'll also look at how to slow down NavMeshAgents as they enter a higher cost area by a factor of the Area Cost, as well as highlighting some "gotchas" in implementing that solution to resolve the most common issues.
🔶 ALL THINGS LlamAcademy now available at: https://llamacademy.dev/support including latest tutorials, courses, ways to support, and more! Check it out 🙂
👨💻 Get the FULL FREE PROJECT on GitHub: https://github.com/llamacademy/ai-series-part-25
🏷️Save 25% on the ultimate C# IDE: JetBrains Rider with code LLAMACADEMY: https://www.jetbrains.com/store/?section=personal&billing=yearly
📚 Resources
🟠 NavMeshModifier: https://docs.unity3d.com/Packages/[email protected]/manual/NavMeshModifier.html
⚫NavMeshModifierVolume: https://docs.unity3d.com/Packages/[email protected]/manual/NavMeshModifierVolume.html
As usual with the AI Series, we're using the NavMesh Components: https://docs.unity3d.com/Manual/NavMesh-BuildingComponents.html not the built-in navigation system.
Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.