public void Mix(IKAnimationBehavior playable, float weight) { look.Mix(playable.look, weight); leftHand.Mix(playable.leftHand, weight); rightHand.Mix(playable.rightHand, weight); leftFoot.Mix(playable.leftFoot, weight); rightFoot.Mix(playable.rightFoot, weight); }
public AnimationIKNode(PlayableGraph graph) { ikPlayable = ScriptPlayable <IKAnimationBehavior> .Create(graph); ikBehavior = ikPlayable.GetBehaviour(); leftHand = new IKLimb(ikBehavior.leftHand); rightHand = new IKLimb(ikBehavior.rightHand); leftFoot = new IKLimb(ikBehavior.leftFoot); rightFoot = new IKLimb(ikBehavior.rightFoot); look = new IKLook(ikBehavior.look); }