Blend(RigidTransform, RigidTransform, float)
Blends two root motion deltas, the way AnimationStreamBlendingExtensions.Blend blends the poses of two clips.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Method
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
public static RigidTransform Blend(RigidTransform delta1, RigidTransform delta2, float weight)
Parameters
The first delta, for example MotionOutput.RootMotion from ClipSampler.SampleRootMotion.
The second delta.
The weight of in the blend.
delta2Returns
Type | Description |
|---|---|
| RigidTransform | The blended delta. |
Remarks
The method interpolates the translations linearly and the rotations with a normalized linear interpolation. The result is the delta that blending the root poses of both clips gives, when both clips start the frame from the same pose, such as the clips of a blend space that move the same character.