Documentation

Unity Engine

Download Unity

Unity Engine

Delta(RigidTransform, RigidTransform)

Computes the difference between two root motion deltas, the way AnimationStreamBlendingExtensions.Delta computes the difference between two poses.
Read time 1 minuteLast updated 4 hours ago

Definition

public static RigidTransform Delta(RigidTransform input, RigidTransform subtract)

Parameters

The input delta.

The delta to subtract.

Returns

Type

Description

RigidTransformThe difference between the deltas.

Remarks

The result is
Add(Inverse(subtract), input)
. It matches the stream operation only when the root of both clips starts the frame at the identity transform.