Vixen
02b45cc4
csharp
public readonly record struct MoveTraits

The numbers a query is scored against, and the limits a move admits to.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ MinRate and MaxRate are what let a set have one clip per gait rather than one every 0.4 m/s. A walk cycle usually reads correctly ±15 %; a stop whose weight lands on a specific frame does not survive any retiming at all, and a move that says so is a move the selector will not stretch.

Fields and properties (7)

  • public float Speed

    What it plays at as authored, in metres a second. Zero for a move that goes nowhere.

  • public float TurnRate

    How fast it turns as authored, in radians a second. Signed; positive is left.

  • public float MinRate

    The slowest playback rate it still reads correctly at.

  • public float MaxRate

    The fastest.

  • public float FootPhase

    Where in normalised time the first foot plants. What a phase sync aligns on.

  • public float SlowestSpeed

    The slowest speed it can be retimed to.

  • public float FastestSpeed

    The fastest.

Methods (2)

  • public MoveTraits()

    Creates traits that admit no retiming.

  • public float RateFor(float speed)

    The playback rate that would hit a speed, clamped to what the move admits.

Used by (15)

  • MoveSelectionBenchmarksVixen.Benchmarks.Animation
  • AuthoringTestsVixen.Animation.Tests
  • DefaultMoveScorerVixen.Animation
  • MoveCandidateVixen.Animation
  • MoveCoverageVixen.Animation
  • MoveEntryVixen.Animation
  • MoveEntryRecordVixen.Animation
  • MoveExplanationsVixen.Animation
  • MoveSetVixen.Animation
  • MoveSetMotionVixen.Animation
  • MoveSetTestsVixen.Animation.Tests
  • MoveTransitionTestsVixen.Animation.Tests
  • QueryMoveSelectorVixen.Animation
  • SeamTestsVixen.Animation.Tests
  • MoveSetImporterTestsVixen.Editor.Assets.Tests