When I got an additive animation applied on normal set of animation, the combined animation wasn’t smooth at all.
For example, I have a RIDING animation for a man-character… the space between 2 legs of the rider is ok when he rides a small motorcycle… but I want his legs to be wider when he rides a bigger one.
I also have a 2-frame animation clip… (This animation’s name is WIDER)
- First frame : the rider’s legs are at 60 degree.
- Second frame: the rider’s legs are at 100 degree.
When I combine RIDING with WIDER, it’s supposted to add some more angle between legs of the rider when playing RIDING…
But the result is that…
In the first frame… the rider’s legs is at 60 degree…
Then in the next frame… the rider’s legs is back to 100 degree…
Then in the next frame… the rider’s legs is at 60 degree
and so on…
I already tried building it with the option “Strip Debug Symbols” enabled…
it works well on Wii… but the problem still exists when running on PC or Mac.
:?
Here’s the code I used:
function Start () {
animWiderLeg = animation[“Additive_40_degree”];
animWiderLeg.layer = 10;
animWiderLeg.blendMode = AnimationBlendMode.Additive;
animWiderLeg.wrapMode = WrapMode.ClampForever;
animWiderLeg.enabled = true;
animWiderLeg.weight = 1.0;
animation[“Riding”].wrapMode = WrapMode.Loop;
animation.Play(“Riding”);
}
function Update () {
animWiderLeg.normalizedTime = 0.0;
//animWiderLeg.normalizedTime = -1.0;
}