- Home /
Question by
Erethan · Sep 14, 2018 at 10:20 PM ·
animationblend treeinterpolationlinear
Blend Tree interpolating rotations
From the Unity docs on blend trees:
"The blending between animations is handled using linear interpolation."
.
However, when it blends between rotations, its interpolation is not linear. Is it an intended behavior? If it is, which interpolation it uses?
Comment
$$anonymous$$y blend tree has two motions with thresholds set to -90 and 90. Each motion has one key frame and only changes one property; z rotation(euler angles). One motion sets the z rotation to -90 and the other one to 90.
When its parameter is either -90, 0 or 90, it matches with the blend result. between those values, the blend result is slightly off.
I've also tested it in a cube with a simple animator with only one blend tree.
Your answer
![](https://koobas.hobune.stream/wayback/20220612174634im_/https://answers.unity.com/themes/thub/images/avi.jpg)