Hi all,
I am trying to play around with ragdoll in Unity…
So I have this character with a capsule collider and a rigidbody on him… I move him around using rigidbody physics…
Now I have created a ragdoll on him using the wizard… so that his bones have rigidbodies and colliders on them too…
The general structure of the model is given below in the image…
On the Start() method of my Controller method, I perform IgnoreCollisions() between the main capsule collider and each of the joint colliders, so that there aren’t any inter-collisions between those colliders…
Now when the point comes where I need to let the ragdoll take over, I simply make the main capsule collider isTrigger = true (have also tried detectCollisions = false on the rigidbody). But the thing is that, the entire body just passes through any underlying platforms below it and falls through with gravity. The joint colliders have no effect and inspite of them not being triggers and having detectCollisions = true, the entire body still passes through platforms…
Have also tried, initially making the isKinematic = true for the joint colliders and then setting it back to false when I want to turn it into a ragdoll. But it just seems that whatever I am doing on the main rigidbody and collider is being passed down to the root and other joints.
Does anyone have any clue why this is happening? And any way to stop this from happening…