I’m trying to use matchtarget to cliffclimb.
I get the animation work, but the transform position and rotation isn’t affected.
Here is how I call it.
public void subirPared(){
animaciones.estados = personajeAnim.animState.cliffjump;
GetComponent<Animator> ().MatchTarget(pStats.Anchor.transform.position, pStats.Anchor.transform.rotation, AvatarTarget.LeftFoot, new MatchTargetWeightMask(Vector3.one, 1f), 0.14f, 1f);
GetComponent<Animator> ().MatchTarget(pStats.Anchor.transform.position, pStats.Anchor.transform.rotation, AvatarTarget.LeftHand, new MatchTargetWeightMask(Vector3.one, 1f), 0.18f, 1f);
}
And the animator state set:
case animState.cliffjump:
cAnimator.SetBool("cliffjump",true);
cAnimator.SetBool("slide",false);
cAnimator.SetBool("cayendo",false);
cAnimator.SetBool("jump",false);
cAnimator.SetBool("run",false);
cAnimator.SetBool("idle",false);
cAnimator.SetBool("walk",false);
break;
The animation does play but nothing is affected.
The animation configuration: