Vixen
02b45cc4
csharp
public sealed class BipedGaitModel

The shipped model: two legs, forward-facing, turning on the spot below a threshold.

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

Remarks

Speed is the planar magnitude and nothing else. A biped's stride length is a function of how fast it is going, which is the whole of what a locomotion set needs to know to pick between a walk, a jog and a run.

⚠ Stride length depends on leg length, and this model does not know any. A character half a metre shorter takes shorter steps at the same speed, so a model given only a velocity picks the same clip and the same retiming for both — and retiming a walk to a speed the legs cannot reach is the sliding-feet bug arriving by the front door. LegLength is the knob, defaulting to the proportions the shipped clips are authored against; a project with a body model feeds it from there.

Fields and properties (3)

  • public float ReferenceLegLength

    The hip-to-floor distance the move set's clips were authored against, in metres.

  • public float LegLength

    This character's, in metres.

  • public float StandingSpeed

    Below this speed the body is treated as turning in place rather than walking.

Methods (1)

  • public void Describe(in MoveState state, ref MoveTargets targets)

    Describes what the animation should be doing.

Used by (2)

  • MoveSetTestsVixen.Animation.Tests
  • SeamTestsVixen.Animation.Tests