Quantcast
Channel: Questions in topic: "ragdoll"
Viewing all articles
Browse latest Browse all 565

Need help with fixing position of Colliders for a Ragdoll

$
0
0
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?

Viewing all articles
Browse latest Browse all 565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>