Documentation

Unity Engine

Download Unity

Unity Engine

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

public static RigidTransform Blend(RigidTransform delta1, RigidTransform delta2, float weight)

Parameters


The second delta.

weight

The weight of
delta2
in the blend.

Returns

Type

Description

RigidTransformThe 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.