- Home /
Ignore Bones in Animation
I would like to disable Animation for certain bones. So that my Ragdoll can takeover.
Can I somehow control which bones the animation affects?
Comment
Answer by KiraSensei · Nov 08, 2012 at 10:49 PM
Have a look at this.
It allows you to specifically declare which bones will move for each animation you made. You can have several bones for one animation of course :
var mixLegR : Transform = transform.Find("root/right_leg");
var mixLegL : Transform = transform.Find("root/left_leg");
animation["idle"].AddMixingTransform(mixLegR);
animation["idle"].AddMixingTransform(mixLegL);
so with this the animation won't update the bone positions?
... of the bones you DON'T add. Basically the converse of what you were asking, you would basically be ADDING only the bones you DO want to animate...
BUT there's also this:
so you can do either one really
but you can only remove bones that have been added already...