I have a windows with a tree of animations, animated in Maya.
In unity i want to desactive the tree of animations and desactive is kinematic to play the ragdoll, what function can I use ?
I know that to desactive knematic is rigidbody.isKinematic = false.
But whats the function to disable animation tree ?
Use
animation.enabled = false;
for(var body : Rigidbody in GetComponentsInChildren(Rigidbody))
{
body.isKinematic = false;
}
This is its simplest form. There’s a lot more you can do, but this is a good start.