public readonly record struct RootMotionDeltaHow far the root moved between two moments, in the character's own frame.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
In the character's frame and not the world's, so a delta sampled once is valid for a character facing any direction — which is what makes one run cycle work for a character that is also being turned by input.
No scale. A clip that scales its root is scaling the character, and that is a pose, not motion: applying it to the entity would compound every frame.
Fields and properties (4)
public Vector3 TranslationThe offset, before the entity's own rotation is applied.
public Quaternion RotationThe turn.
public static RootMotionDelta NoneNo movement.
public bool IsZeroWhether this delta moves anything.
Methods (6)
public RootMotionDelta(Vector3 Translation, Quaternion Rotation)How far the root moved between two moments, in the character's own frame.
public static RootMotionDelta Between(in BoneTransform from, in BoneTransform to)The delta from one root transform to another: apply this, then you were at .
public static RootMotionDelta Chain(in RootMotionDelta first, in RootMotionDelta second)Chains two deltas: , then .
public RootMotionDelta Scaled(float amount)Scales a delta, for a clip playing at other than its authored speed.
public static RootMotionDelta Lerp(in RootMotionDelta from, in RootMotionDelta to, float amount)Averages deltas by weight, the same way a blend averages poses.
public BoneTransform ToTransform()The delta as a transform, for composing onto an entity's local transform.
Used by (19)
- AnimationClipVixen.Animation
- AnimationSystemVixen.Animation
- AnimatorVixen.Animation
- AnimatorTestsVixen.Animation.Tests
- BlendEvaluatorVixen.Animation
- BlendTree1DVixen.Animation
- BlendTree2DVixen.Animation
- ClipMotionVixen.Animation
- EcsIntegrationTestsVixen.Animation.Tests
- MotionVixen.Animation
- MoveSetMotionVixen.Animation
- RetargetingTestsVixen.Animation.Tests
- RootMotionResultVixen.Animation
- RootMotionTestsVixen.Animation.Tests
- StateMachineInstanceVixen.Animation
- StillVixen.Net.Animation.Tests
- StillTestMotionVixen.Animation.Tests
- UnresolvedMotionVixen.Animation
- EmptyMotionVixen.Editor.AnimationGraph