Documentation

Unity Engine

Download Unity

Unity Engine

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

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

RootMotionThe motion of the root from the previous time of the timer to its current time.
RootTransformThe transform of the root in character space at the current time of the timer.