- Home /
How do I make an Active 3D AI Ragdoll like in this video?
I am trying to figure out how to create an Active 3D AI ragdolls and how to make a script that controls them like in these videos.
https://www.youtube.com/watch?v=vjaymNmXtns
https://www.youtube.com/watch?v=KFHYHuyBxtY
I can not seem to find any good youtube videos of someone showing how to build the ragdoll and then writing a script to control the ragdoll to move like that. Does anyone have any good videos that shows how to build and control something like this?
Answer by MrSpecjal · Dec 29, 2020 at 03:41 PM
Create ragdoll using wizard https://docs.unity3d.com/Manual/wizard-RagdollWizard.html
Create array with rigidbodies and colliders attached to the npc
Disable on start all rigidbodies an colliders via script
Create method which is called when you want to turn on ragdoll
In this method:
-Disable NavMeshAgent
-Disable Animator
-Iterate through arrays and enable all components
-(Optional) You can add force to rigidbodies
Useful tuts:
https://www.youtube.com/watch?v=DInV-jHm9rk
https://www.youtube.com/watch?v=k9Id-LhJq_c
https://www.youtube.com/watch?v=4_QCbilpOzQ
Your answer
Follow this Question
Related Questions
Enemy Ragdoll help 1 Answer
Help on RAIN AI Basic Animator? (Documentation missing) 3 Answers
Do BlendShapes support multi-target weighting? 0 Answers
Animay play in editor 0 Answers
Transition Between Regular Animations and Ragdoll Physics 3 Answers