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

Ragdoll won't respond to graivty when isKinematic set to false

$
0
0
I have an NPC with limb colliders set up with Unity's ragdoll wizard, all the colliders set to isKinematic. The NPC is also using a Mecanim Animator and has a health script, where when its health reaches zero all the colliders are set to isKinematic = false and the Animator is disabled. Here's the death script: private Component[] boneRig; private Animator selfAnim; void Start(){ boneRig = gameObject.GetComponentsInChildren(); selfAnim = gameObject.GetComponent(); } public override void Die(){ Debug.Log("Dead!!!"); foreach(Rigidbody ragdoll in boneRig){ ragdoll.isKinematic = false; } selfAnim.enabled = false; } In the Inspector, the Animator is properly disabled on death and all of the ragdoll colliders have isKinematic to false. But NPC will just go from its idle animation to the default pose it starts with. It doesn't collapse and only the arms seems to move a little if I have my FPS character (capsule collider) run into it. What could be an issue causing the ragdoll to not behave properly? Does using an Animator change it any? Because the same set up was working fine for NPCs I had using an Animation component instead of an Animator.

Viewing all articles
Browse latest Browse all 565

Trending Articles



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