BlendAnimatorclass is an animator that blends outputs from its subanimators.
class BlendAnimator : public Animator
BlendAnimator(Model *model, Node *node = nullptr);
||The model to which the animator applies.|
||The target node, which is the root of the subtree within the model that is affected by the animator. If this is |
BlendAnimatorclass is used to blend the outputs of two subanimators based on their current weights. The range of nodes affected by a blend animator is the union of the ranges affected by its immediate subanimators, restricted to the range of the blend animator itself. Blending takes place only inside the intersection of these ranges, and nodes outside of the intersection have their transforms passed through from the subanimators.
The weights used by the blend animator are given by the current values of the weight interpolators belonging to the two subanimators. These interpolators are retrieved by calling the
Animator::GetWeightInterpolatorfunction. The weights are always normalized by the blend animator, so they do not need to sum to one.
If a blend animator has only one subanimator, then the transforms output by the subanimator are simply passed through.