Question by
artplayer · Nov 03, 2018 at 12:00 AM ·
animatormecanimroot motion
MatchTarget Rotating Character
Hello everyone, I need help with MatchTarget. Regardless of the animation I use the end of the way, my character ends with an unwanted X-axis rotation. I'm trying to make an escalation where the right hand ends up on the target. I'd like help finding what I'm doing wrong.
This is my code:
private void Update()
{
if(anim.GetCurrentAnimatorStateInfo(0).IsTag("Climb") && !anim.IsInTransition(0))
{
anim.MatchTarget(target.position, target.rotation, AvatarTarget.RightHand, new MatchTargetWeightMask(Vector3.one, 1f), StartMatch, EndMatch);
}
}
Unity 2018.2.14.f1
screenshot-1.png
(108.7 kB)
screenshot-3.png
(123.2 kB)
Comment