AnimationBlender Class
Namespace: Stride.AnimationsAssembly: Stride.Engine.dll
Performs animation blending. For now, all AnimationClip must target the same skeleton.
System.Object →
AnimationBlender
Derived from AnimationBlender:
public sealed class AnimationBlender
Name | Description | |
---|---|---|
Methods | ||
Blend(CoreAnimationOperation, Single, AnimationClipResult, AnimationClipResult, AnimationClipResult) | ||
Compute(FastList<AnimationOperation>, ref AnimationClipResult) | Computes the specified animation operations. |
|
CreateEvaluator(AnimationClip) | ||
ReleaseEvaluator(AnimationClipEvaluator) |
Methods
Blend(CoreAnimationOperation, Single, AnimationClipResult, AnimationClipResult, AnimationClipResult)
public static void Blend(CoreAnimationOperation blendOperation, float blendFactor, AnimationClipResult sourceLeft, AnimationClipResult sourceRight, AnimationClipResult result)
Parameters
Type | Name | Description |
---|---|---|
CoreAnimationOperation | blendOperation | |
System.Single | blendFactor | |
AnimationClipResult | sourceLeft | |
AnimationClipResult | sourceRight | |
AnimationClipResult | result |
Compute(FastList<AnimationOperation>, ref AnimationClipResult)
Computes the specified animation operations.
public void Compute(FastList<AnimationOperation> animationOperations, ref AnimationClipResult result)
Parameters
Type | Name | Description |
---|---|---|
FastList<AnimationOperation> | animationOperations | The animation operations to perform. |
AnimationClipResult | result | The optional result (if not null, it expects the final stack to end up with this element). |
CreateEvaluator(AnimationClip)
public AnimationClipEvaluator CreateEvaluator(AnimationClip clip)
Parameters
Type | Name | Description |
---|---|---|
AnimationClip | clip |
Returns
Type | Description |
---|---|
AnimationClipEvaluator |
ReleaseEvaluator(AnimationClipEvaluator)
public void ReleaseEvaluator(AnimationClipEvaluator evaluator)
Parameters
Type | Name | Description |
---|---|---|
AnimationClipEvaluator | evaluator |