Documentation

Unity Engine

Download Unity

Unity Engine

HasRootMotion

Whether the clip has root motion curves for the rig of the sampler.
Read time 1 minuteLast updated 4 hours ago

Definition

public bool HasRootMotion { get; }

Remarks

ClipSampler.SampleRootMotion returns identity transforms if this value is
false
.
The value is
true
when the clip has root motion curves (
MotionT
and
MotionQ
, or
RootT
and
RootQ
), or translation or rotation curves for the root motion bone of the rig or one of its parent bones. By default, the root motion bone is the root bone of the rig. To choose another bone, set RigBuilder.RootMotionBoneId when you build the rig.