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
- Type: Class
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
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 |
|---|---|
| Add | Adds two root motion deltas, the way AnimationStreamBlendingExtensions.Add adds two poses. |
| Blend | Blends two root motion deltas, the way AnimationStreamBlendingExtensions.Blend blends the poses of two clips. |
| BlendAdditive | Blends an additive root motion delta into a delta, the way AnimationStreamBlendingExtensions.BlendAdditive blends an additive pose into a pose. |
| Delta | Computes the difference between two root motion deltas, the way AnimationStreamBlendingExtensions.Delta computes the difference between two poses. |
| Inverse | Inverts a root motion delta, the way AnimationStreamBlendingExtensions.Inverse inverts a pose. |
| ProjectRootTranslation | Projects a root translation onto the ground, which is the horizontal plane at y = 0. |
| Weight | Weights a root motion delta, the way AnimationStreamBlendingExtensions.Weight weights a pose. |
Structs
Struct | Description |
|---|---|
| RootMotionUtility.DeltaMixer | Mixes several weighted root motion deltas, the way Core.PoseMixer mixes the poses of several clips. |