MotionOutput
The root motion of a clip from the previous time of a timer to its current time, and the root transform of the clip at the current time.
Read time 1 minuteLast updated 3 hours ago
Definition
- Type: Struct
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
public struct MotionOutput
Remarks
ClipSampler.SampleRootMotion returns this struct. Apply MotionOutput.RootMotion to the transform of the character to move it. Sample the pose at the same time with ClipSampler.SampleExtractingRootMotion to remove the root motion from the pose, so that the character doesn't move twice.
Additional Resources: ClipSampler
Fields
Value | Description |
|---|---|
| RootMotion | The motion of the root from the previous time of the timer to its current time. |
| RootTransform | The transform of the root in character space at the current time of the timer. |