Character Controller to Ragdoll when HP = 0

I setup a ragdoll using the wizard it works fine. My problem is when I have a character controller activated. I want the character to act normally until it’s HP == 0, then it ragdolls. This is much more complex than I bargained for.

When HP ==0, I tried setting character controller.isTrigger = true and setting the RigidBody.isKinematic component for each ragdoll bone to true (from false). The character controller stays in place no matter where the ragdoll goes and the ragdoll acts strangely.

What is the standard way of activating a ragdoll?

I hate to answer my own question but heres what I found with some research.

http://download.unity3d.com/support/resources/files/FPS_Tutorial_3.pdf

A ragdoll prefab needs to be created. It is separate from your regular alive object. When HP == 0 delete the regular alive object and instantiate the ragdoll prefab in its place. I havent tried it yet but it should work. (I hope).

Our tool the URG! has a built in class to do just this with very simple steps. It’s even available in the free version.

Additionally, you can even choose to create a kinematic ragdoll, and we provide a specific class for transition for those cases too, if you want to have a physics gameobject instead of a transitioning one.

Unity forums thread

Site page