- Home /
Animator.deltaPosition and MatchTarget
Hi guys and girls.
I was just wondering if anyone could confirm whether or not while target matching in Mecanim if the animator returns modified delta values based on the target match or will the animator return generic delta values from purely the animation?
I have a sneaking suspicion that it is the latter however if anyone could confirm I would be eternally grateful.
Thank you!
I can't remember exactly but I think it turned out it was returning modified values for the target match (i.e. if a step was normally 1m but the target match shortened it to 0.5m then animator.deltaPosition returned 0.5 rather than 1.0.
I can't 100% remember though as this was over 3 years ago now.
Cheers.
Answer by JaamySk · Dec 28, 2021 at 04:09 PM
Yes, animtaor.deltaPosition values get effected by animator.MatchTarget. I had the same question as you, therefore I ran a small test and now I'm sure they get effected, which seems suitable
Your answer