/ai-series-part-28

In this tutorial repository you will see how you can use moving platforms with the Unity Navigation System.

Primary LanguageShaderLabMIT LicenseMIT

Navmesh AI Tutorial 28 - NavMeshes on Moving Platforms

In this tutorial repository you will learn how to make NavMeshes with Moving Platforms that are traversable by NavMeshAgents. This is officially unsupported and comes with some limitations on how it can work. The video tutorial discusses these limitations in depth.

Some highlights are:

  • The NavMeshAgent must move faster than the platform or they are unable to walk on the platform as it moves.
  • Stutter can occur if the Agent's acceleration is not fast enough for the platform.
  • If no movement is required while the platform is moving, using Agent.Warp is a generally more stable solution.
  • AI using the platforms requires additional logic to go to "boarding points" since there is no complete path to the platforms unless they're docked.

Watch the video below for full explanation of what's going on here and discussion on the drawbacks and limitations of moving platforms.

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
  • 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.