FAnimationRuntime::BlendPosesTogether

Blends together a set of poses, each with a given weight.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/AnimationRuntime.h

Include

#include "AnimationRuntime.h"

Source

/Engine/Source/Runtime/Engine/Private/Animation/AnimationRuntime.cpp

Syntax

static void BlendPosesTogether
(
    TArrayView< const FCompactPose > SourcePoses,
    TArrayView< const FBlendedCurve > SourceCurves,
    TArrayView< const float > SourceWeights,
    FCompactPose & ResultPose,
    FBlendedCurve & ResultCurve
)

Remarks

Blends together a set of poses, each with a given weight. This function is lightweight, it does not cull out nearly zero weights or check to make sure weights sum to 1.0, the caller should take care of that if needed.

The blend is done by taking a weighted sum of each atom, and re-normalizing the quaternion part at the end, not using SLERP. This allows n-way blends, and makes the code much faster, though the angular velocity will not be constant across the blend.

Parameters

Parameter

Description

ResultPose

Output pose of relative bone transforms.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback