Hi, I have set up a Ragdoll for a Character that is controlled by a NavmeshAgent.
Now when the Character is dead, I disable the navmeshagent(other script) and set every collider.isTrigger of the Ragdoll to false like this:
public void SetRagdoll(bool isActive){
animator.enabled = !isActive;
foreach(Collider c in Ragdollparts){
c.isTrigger = !isActive;
}
}
The problem is that while the animator on my Character is active, the ragdollcolliders try to follow the limbs which creates a huge offset for the colliders.
When I set SetRagdoll to true, it seems like the colliders on the limbs are stuck in the ground which leads to weird behavior of the ragdoll.
I recorded a Gif to help you see whats going on: https://imgur.com/IBgEWkl
How can I fix this problem?
↧