Ragdoll on Death NavMeshAgents | AI Series Part 39
Published: 03 May 2022
Learn how to transform your fully animated NavMeshAgents and transform them into a Ragdoll on death โ that eventually subtly fade out! This is a great way to add more "game feel" ๐ into your game with more responsive, physically based death behaviors for your NavMeshAgents!
This tutorial builds on several previous AI Series and non-AI Series videos.
๐จโ๐ป As always, you can check out this full project on GitHub: https://github.com/llamacademy/ai-series-part-39
to see the full project as shown in the tutorial (minus 2 free Asset Store assets, later on in the description).
๐ท๏ธSave 25% on the ultimate C# IDE: JetBrains Rider with code LLAMACADEMY: https://www.jetbrains.com/store/?section=personal&billing=yearly
๐ If you want a full breakdown of how each system was created, check out the original tutorial below (each also with its own project on GitHub)
โซ AI Series Part 1 (Click to Move NavMeshAgents & Chasing a Player
) - https://youtu.be/aHFSDcEQuzQ
โซ AI Series Part 3 (Animated NavMeshAgents) - https://youtu.be/wLZPM46zgUo
โซ AI Series Part 6 (NavMeshAgents Attacking Nearby Objects) - https://youtu.be/Aee01YxQIsw
โซ AI Series Part 29 (Line of Sight checking on NavMeshAgents): https://youtu.be/t9e2XBQY4Og
โซ Raycast Shooting - https://youtu.be/GkStW8-Q5P0
โซ Lerping Fundamentals - https://youtu.be/IymDGkzwJts
โซ Creating a Ragdoll Model - https://youtu.be/RB18IyKZiB0
As usual with the AI Series, we're using the NavMesh Components: https://docs.unity3d.com/Manual/NavMesh-BuildingComponents.html not the built-in navigation system.
๐จ FREE assets used in this project:
โซ https://assetstore.unity.com/packages/3d/characters/humanoids/zombie-30232?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://humblebundleinc.sjv.io/9g4ak4
๐ธ 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.
Chatpers:
00:00 Topic Introduction
01:33 Scene & AI Overview
04:35 RagdollEnabler.cs - Transition Between Animated Models & Ragdolls
06:26 Attackable.cs - Handling Damage and Death on AI
07:09 PlayerAttack.cs - Attacking AI, Damaging, and Adding Ragdoll Force