HasRootMotion
Whether the clip has root motion curves for the rig of the sampler.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Property
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
public bool HasRootMotion { get; }
Remarks
ClipSampler.SampleRootMotion returns identity transforms if this value is .
falseThe value is when the clip has root motion curves ( and , or and ), 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.
trueMotionTMotionQRootTRootQ