Vixen
02b45cc4
csharp
public readonly record struct RootMotionDelta

How 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 Translation

    The offset, before the entity's own rotation is applied.

  • public Quaternion Rotation

    The turn.

  • public static RootMotionDelta None

    No movement.

  • public bool IsZero

    Whether this delta moves anything.

Methods (6)

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