Learn the creation workflow for Ragdolls in Unity, how to toggle between an Animator and Ragdoll, and think through some optimization ideas when you have a large number of potential ragdolls in your game!
Ragdolls are a hugely popular mechanic in games that add, usually a funny mechanic into your game. What they always do though, is allow you to have models go limp and flop around procedurally!
While the tool we look at for autoattaching Colliders, Rigidbodies, and CharacterJoints to the Transform "bones" of our 3d model, you can manually add these and have any model go into a Ragdoll by following the same process we followed to set up the hands and feet!
Ongoing sales
⚫ See all active asset sales on the Asset Store: https://assetstore.unity.com/?on_sale...
⚫ Save 25% off your first Asset Store Order: https://prf.hn/click/camref:1101l9QvC...
⚫ Save up to 50% on NEW Assets: https://assetstore.unity.com/?new_sal...
As always, all code from this video is available on GitHub: https://github.com/llamacademy/ragdolls
❤ Believe in LlamAcademy's mission and have received value from the videos? Become a Patreon Supporter or YouTube Member:
⚫ Patreon: / llamacademy
⚫ YouTube Member: / @llamacademy or click the Join button on any video
Resources
⚫ Unity Ragdoll Documentation: https://docs.unity3d.com/Manual/wizar... (pretty short)
⚫ Zombie Asset to import: https://assetstore.unity.com/packages...
⚫ Physic Material Documentation: https://docs.unity3d.com/Manual/class...
⚫ Active Ragdoll Video: • PlayForm SelfBalancing Active Ragd...
Most tutorials come from knowledge gained making https://survival.llama.software Llama Survival a topdown zombie survival shooter for Android and iOS.
I also have some Unity Assets (affiliate link): https://assetstore.unity.com/publishe...
Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.
#unitytutorial #tutorialtuesday #gamedev #tutorial #unity #llamacademy #gamedevelopment #ragdoll
00:00 Ragdoll Introduction Components Involved
04:05 Getting a Model
05:05 Ragdoll Creator Tool
07:41 Generated Ragdoll Fixes Required!
08:49 Adding Hands and Feet to the Ragdoll
10:56 Toggle Between Animated Model and Ragdoll
12:00 Addressing Strange Ragdoll Behavior
14:55 RagdollEnabler.cs Toggle Animated vs Ragdoll & Initial Optimizations
16:30 Performance Analysis & Other Optimization Ideas