Find when a NavMeshLink will be Taken | AI Series 43 | Unity Tutorial
Автор: LlamAcademy
Загружено: 2022-10-18
Просмотров: 5709
In this short tutorial you'll learn how to find the OffMeshLinks (high level component: NavMeshLink) that a NavMeshAgent will take on their current path.
Unfortunately, Unity does not provide a way to query the NavMesh for OffMeshLinks, so it's not possible to find ALL OffMeshLinks (unless you have all OffMeshLinks as NavMeshLinks and do something like FindObjectsOfType NavMeshLink()).
Using this method, regardless if you're using a NavMeshLink or OffMeshLink, you can find the exact points that a NavMeshAgent will traverse an OffMeshLink between!
As usual with the AI Series, we're using the NavMesh Components: https://docs.unity3d.com/Manual/NavMe... not the built-in navigation system.
👨💻 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...
🧡 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
00:53 Solution Summary
01:13 Scene & Component Overview
02:12 How to Check for OffMeshLinks
02:58 Why it works!
03:42 Become a Supporter!
04:10 Rendering the Line & Demo
04:35 Final Thoughts & Bonus!
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: