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.
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.
- YOUR NAME HERE!
- Raphael
- YOUR NAME HERE!
- Bastian
- Jacob Martin
- Trey Briggs
- AudemKay
- YOUR NAME HERE!
Interested in other AI Topics in Unity, or other tutorials on Unity in general?
- Requires Unity 2019.4 LTS or higher.
- Utilizes the Navmesh Components from Unity's Github.