animation normalized time greater than 1 ?

I have a character and I apply physics forces when his animations reach a certain point.

I use

if((animation["Right"].normalizedTime > 0.5f)(!forceApplied))
{
// aply forces here
}

The animation is started using

animation.CrossFade("Right");

so you can go left then right before the other animation is finished

the thing is that animation.normalizedTime often goes above 1.0f under these circumstances! Is this because its blended with another animation ? Im relying on normalisedTime being between 0.0f - 1.0f as the documentation states , why is it going over 1.0f ?

1 Like

you can solve it this issue with this code
“animation[stateAnimation].time % animation[stateAnimation].length”

1 Like

Ok, I know this is ancient but in my case, it turned out that the old animation hadn’t finished playing so the normalizedTime was way higher. By adding a small delay, it show the time for the correct animation