Documentation

Unity Engine

Download Unity

Unity Engine

RootMotionUtility

Utility functions for the root motion of a rig, such as projecting a root translation onto the ground.
Read time 1 minuteLast updated 3 hours ago

Definition

public static class RootMotionUtility

Remarks

Use RootMotionUtility.ProjectRootTranslation to find the ground position of a bone, such as the hips, when you match clips during a transition.

Static Methods

Method

Description

AddAdds two root motion deltas, the way AnimationStreamBlendingExtensions.Add adds two poses.
BlendBlends two root motion deltas, the way AnimationStreamBlendingExtensions.Blend blends the poses of two clips.
BlendAdditiveBlends an additive root motion delta into a delta, the way AnimationStreamBlendingExtensions.BlendAdditive blends an additive pose into a pose.
DeltaComputes the difference between two root motion deltas, the way AnimationStreamBlendingExtensions.Delta computes the difference between two poses.
InverseInverts a root motion delta, the way AnimationStreamBlendingExtensions.Inverse inverts a pose.
ProjectRootTranslationProjects a root translation onto the ground, which is the horizontal plane at y = 0.
WeightWeights a root motion delta, the way AnimationStreamBlendingExtensions.Weight weights a pose.

Structs

Struct

Description

RootMotionUtility.DeltaMixerMixes several weighted root motion deltas, the way Core.PoseMixer mixes the poses of several clips.