Question by
Franklin96 · Mar 06, 2020 at 04:29 PM ·
rigidbodyragdoll
Ragdoll Glitch on Activation
Somebody can help me? Video: http://youtu.be/YQkYaFGmrdw I also try with enable/disable Kinematic Mode, and that's fine, but the character are not affected by gravity, then it's not a valid method for a Character. Code:
if(RagdollAttivato==false) {
gameObject.GetComponent<Zombie>().enabled = true;
gameObject.GetComponent<Animator>().enabled = true;
foreach (Rigidbody rb in rbArray) {
rb.useGravity = false;
}
}
else{
foreach(Transform t in transform)
{
t.gameObject.tag = "ZombieRagdoll";
t.gameObject.layer = 15;
}
gameObject.GetComponent<Zombie>().enabled = false;
gameObject.GetComponent<Animator>().enabled = false;
foreach (Rigidbody rb in rbArray) {
rb.useGravity = true;
}
Comment
Your answer
Follow this Question
Related Questions
How do I get a ragdoll to hold a moving object with his hands? 1 Answer
How do I get the parent to follow the child's movement? 0 Answers
rigidbody velocity changes rapidly(fly) after change timescale 1 Answer
Ragdoll from Blender doesnt work in Unity 0 Answers
Character Joint stretches away from anchor on one of my joints only in Ragdoll 1 Answer