In this tutorial you will learn how to set up OffMeshLinks via the NavMeshLink component to add ladders into your game!
NavMeshAgents will correctly position themselves, mount the ladder, climb the ladder, and dismount the ladder in a relatively smooth sequence.
👨💻 As always, all code from this video is available on GitHub: https://github.com/llamacademy/ladder-navmeshlink
🏷️Save 25% on the ultimate C# IDE: JetBrains Rider with code LLAMACADEMY: https://www.jetbrains.com/store/?section=personal&billing=yearly
📚 Resources:
⚫ Left Click to Move (AI Series Ep 1): https://youtu.be/aHFSDcEQuzQ
⚫ Introduction to NavMeshLinks (AI Series Ep 2): https://youtu.be/dpJUc_BpChw
⚫ AgentLinkMover in Detail (AI Series Ep 17): https://youtu.be/PD6VFD1a21g
⚫ Root Motion & NavMeshAgents (AI Series Ep 42): https://youtu.be/uAGjKxH4sDQ
⚫ 8 IK Solutions Compared: https://youtu.be/jOp52NQMcTo
⚫ Protofactor Ultimate Animation Collection: https://assetstore.unity.com/packages/3d/animations/ultimate-animation-collection-195459?aid=1101l9QvC
⚫ Final IK: https://assetstore.unity.com/packages/tools/animation/final-ik-14290?aid=1101l9QvC
⚫ Interactor: https://assetstore.unity.com/packages/tools/animation/interactor-interaction-handler-178062?aid=1101l9QvC
🧡 Believe in LlamAcademy's mission and have received value from the videos? Here's how you can show your support:
🌟 Patreon: https://www.patreon.com/llamacademy
🌟 YouTube Member: https://www.youtube.com/channel/UCnWm6pMD38R1E2vCAByGb6w/join or click the Join button on any video
📚 Take my Unity ShaderGraph Course:
https://www.gamedev.tv/p/unity-shader-graph?affcode=45216_kuvg0bp7
👕 Get yourself some LlamAcademy merch: https://llamacademy.myspreadshop.com/
💸 Use my Affiliate Link for Humble Bundles https://www.humblebundle.com/software?partner=llamasoftware&charity=2280172
💸 Publisher Sale! 50% OFF an entire publisher's Assets! Publisher changes weekly! https://assetstore.unity.com/publisher-sale?aid=1101l9QvC (affiliate)
💸 Save up to 50% on NEW Assets: https://assetstore.unity.com/?new_sale=true&orderBy=1&aid=1101l9QvC (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:55 Create the NavMeshLink & Navigation Area
03:30 Animation Overview
07:01 Important Scripts on The Dude
07:28 Overview of Custom Motion on OffMeshLinks - AgentLinkMover.cs
10:18 Ladder Move Method - AgentLinkMover.cs
20:55 Attach Animations in Editor & Configure NavMeshLink Traversal Types
21:47 Initial Demo - Why we need different start/end positions.
22:10 Pick the right ladder start / end positions - AgentLinkMover.cs
23:05 Final Demo, Closing Thoughts, & How to Support LlamAcademy