Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Root Motion NavMeshAgent Animation | AI Series Part 42 | Unity Tutorial

Автор: LlamAcademy

Загружено: 2022-09-27

Просмотров: 37559

Описание:

Learn how to combine a Root Motion animated model with a NavMeshAgent! This gives you all the pathing benefits and local avoidance of the Navigation System with the precise animation you expect from Root Motion.

Root Motion is a great way to remove that annoying "foot sliding" from mismatched animation vs velocity. But synchronizing that motion with a NavMeshAgent can be tricky! The NavMeshAgent knows where to go and considers local avoidance. So, there's a lot of things to consider when trying to match these two systems!

We've already learned how to animate NavMeshAgents where the NavMeshAgent drives the Animator state (way back in AI Series Part 3:    • Sync Animator and NavMeshAgent States | AI...  ), but in this video we're going to do it the other way - with the Animator driving the NavMeshAgent!

There are multiple ways to approach this solution. In this repository I have chosen what makes the most sense to me - correcting the position of the Root Motion to pathable areas by moving the position of the model back towards the NavMeshAgent when they are out of sync.

Gargoyle Model used here: https://assetstore.unity.com/packages...
It's not required to run the project, but you will need to use a different model for the Player with 1D animation, or update the "PlayerMovement.cs" to set 2D Animator parameters like it's done in "EnemyMovement.cs".

👨‍💻 As always, all code from this video is available on GitHub: https://github.com/llamacademy/ai-ser...

🏷️Save 25% on the ultimate C# IDE: JetBrains Rider with code LLAMACADEMY: https://www.jetbrains.com/store/?sect...

📚 Resources 📚
⚫ Root Motion: https://docs.unity3d.com/Manual/RootM...
⚫ Synchronizing NavMeshAgents and Root Motion: https://docs.unity3d.com/Manual/nav-C...
⚫ NavMeshAgents and Other Systems: https://docs.unity3d.com/Manual/nav-M...
⚫ AI Series Part 3 -    • Sync Animator and NavMeshAgent States | AI...  

As usual with the AI Series, we're using the NavMesh Components: https://docs.unity3d.com/Manual/NavMe... not the built-in navigation system.

🧡 Believe in LlamAcademy's mission and have received value from the videos? Here's how you can show your support:
🌟 Patreon:   / llamacademy  
🌟 YouTube Member:    / @llamacademy   or click the Join button on any video
📚 Take my Unity ShaderGraph Course:
https://www.gamedev.tv/p/unity-shader...
👕 Get yourself some LlamAcademy merch: https://llamacademy.myspreadshop.com/
💸 Use my Affiliate Link for Humble Bundles https://humblebundleinc.sjv.io/9g4ak4
💸 Publisher Sale! 50% OFF an entire publisher's Assets! Publisher changes weekly! https://assetstore.unity.com/publishe... (affiliate)
💸 Save up to 50% on NEW Assets: https://assetstore.unity.com/?new_sal... (affiliate)

Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.

Chapters:
00:00 Topic Introduction
01:22 3 Keys to Successful Root Motion Animated NavMeshAgents
03:42 Animator Overview - 2D Movement Blend Tree
04:52 Animator Overview - 1D Movement Blend Tree
05:54 NavMeshAgent Configuration
06:58 Why You May Want to Use Root Motion Animation
07:40 PlayerMovement.cs - Prepare Agent and Animator for Root Motion
08:46 PlayerMovement.cs - Synchronize Animator and Agent
09:42 PlayerMovement.cs - Set Animator Parameters
12:26 PlayerMovement.cs - Reconcile Difference in Animation and Agent Positions
13:24 Become a Supporter!
13:56 Demo & Showing Polish Focus Areas
15:21 Final Thoughts

Root Motion NavMeshAgent Animation | AI Series Part 42 | Unity Tutorial

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Find when a NavMeshLink will be Taken | AI Series 43 | Unity Tutorial

Find when a NavMeshLink will be Taken | AI Series 43 | Unity Tutorial

Should You Use Root Motion?

Should You Use Root Motion?

Hiding AI - Take Cover Behind World Geometry | AI Series Part 29 | Unity Tutorial

Hiding AI - Take Cover Behind World Geometry | AI Series Part 29 | Unity Tutorial

NavMeshAgent Avoidance in Depth - 5 Key Takeaways for Optimal Avoidance  | AI Series Part 32

NavMeshAgent Avoidance in Depth - 5 Key Takeaways for Optimal Avoidance | AI Series Part 32

ChatGPT против Grok Make Doom

ChatGPT против Grok Make Doom

Инструменты локализации Unity | Узнайте, как локализовать свою игру | Учебное пособие по Unity

Инструменты локализации Unity | Узнайте, как локализовать свою игру | Учебное пособие по Unity

НЕЙРОСЕТИ VS BLENDER 3D / МЫ ПРОИГРАЛИ

НЕЙРОСЕТИ VS BLENDER 3D / МЫ ПРОИГРАЛИ

Combining Unity NavMesh with Humanoid Animation

Combining Unity NavMesh with Humanoid Animation

Крах Jaguar: Как “повестка” в рекламе добила легенду британского автопрома

Крах Jaguar: Как “повестка” в рекламе добила легенду британского автопрома

БЕЛЫЕ СПИСКИ: какой VPN-протокол справится? Сравниваю все

БЕЛЫЕ СПИСКИ: какой VPN-протокол справится? Сравниваю все

Я Сделал Аркейн Без Бюджета

Я Сделал Аркейн Без Бюджета

Как россиян отключают от интернета

Как россиян отключают от интернета

Root Motion + NavMeshAgent (and Nav Mesh Links!) | Unity Tutorial

Root Motion + NavMeshAgent (and Nav Mesh Links!) | Unity Tutorial

i think this is what AI should look like

i think this is what AI should look like

Unity Navigation In 2025 - Key Components for Building Navigable Worlds

Unity Navigation In 2025 - Key Components for Building Navigable Worlds

Аниматор юнити - подробное руководство

Аниматор юнити - подробное руководство

3D локация в Blender | Моделирую уровень игры

3D локация в Blender | Моделирую уровень игры "Aftermoon"

Основы лерпинга — узнайте, как использовать его и когда использовать его варианты | Учебное пособ...

Основы лерпинга — узнайте, как использовать его и когда использовать его варианты | Учебное пособ...

Введение в анимационную анимацию и процедурную анимацию в Unity

Введение в анимационную анимацию и процедурную анимацию в Unity

Как бы выглядел человек в 4D?

Как бы выглядел человек в 4D?

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]