Hello, I've followed a tutorial but my ragdoll stays all messed up after it ends. Like the animation is mangled.
How can I get it to fully disable and return to normal?
(Note: This is for respawning after death, so no need for transitions)
public void StartRagdoll(Vector2 velocity){
Ragdoll.Apply();
Ragdoll.RootRigidbody.velocity = velocity;
}
public void EndRagdoll(){
Ragdoll.RootRigidbody.isKinematic = true;
Ragdoll.SetSkeletonPosition(Vector3.zero);
Ragdoll.Remove();
}
Also, his arm is attached using IK, however the gun doesn't move as shown. How can I sort of disable IK on the weapon temporarily so it moves with the body?