/ai-series-part-32

Learn how NavMeshAgent obstacle avoidance works... in DEPTH! In this deep dive into NavMeshAgent avoidance you'll learn 5 key takeaways for improving NavMeshAgent avoidance using the Unity Navigation System, no external assets needed!

Primary LanguageShaderLabMIT LicenseMIT

Navmesh AI Tutorial 32 - NavMeshAgent Avoidance in Depth - 5 Key Takeaways for Optimal Avoidance

Learn how NavMeshAgent obstacle avoidance works... in DEPTH! In this deep dive into NavMeshAgent avoidance you'll learn 5 key takeaways for improving NavMeshAgent avoidance using the Unity Navigation System - no external assets needed!

The demo scene has 3 scenarios to run:

  1. 1 on 1 scenario - preview agent avoidance in a controlled environment
  2. Circle Scenario - Spawns 100 (configurable) agents in a circle and sends them all to the opposite point on the circle, creating a traffic jam in the middle
  3. Narrow Pathways Scenario - Spawns 4 groups of 25 agents (configurable) and sends them to the opposite corner through a narrow pathway creating a traffic jam

Scenario 2 and 3 are recreated from the examples on the RVO website

Youtube Tutorial

Patreon Supporters

Have you been getting value out of these tutorials? Do you believe in LlamAcademy's mission of helping everyone make their game dev dream become a reality? Consider becoming a Patreon supporter and get your name added to this list, as well as other cool perks. Head over to https://patreon.com/llamacademy to show your support.

Gold Tier Supporters

  • YOUR NAME HERE!

Silver Tier Supporters

  • Raphael
  • Andrew Bowen
  • YOUR NAME HERE!

Bronze Tier Supporters

  • Bastian
  • Jacob Martin
  • Trey Briggs
  • AudemKay
  • YOUR NAME HERE!

Other Projects

Interested in other AI Topics in Unity, or other tutorials on Unity in general?

Requirements

  • Requires Unity 2019.4 LTS or higher.
  • Utilizes the Navmesh Components from Unity's Github.