Vixen
02b45cc4
csharp
public readonly record struct MoveState

What a body is doing right now, as the gait model needs to see it.

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

Remarks

⚠ Measured, not wanted. This is the body's actual state, which is the controller's output; what the player asked for is MoveIntent and the two differ whenever a wall, a slope or an acceleration limit gets in the way. Animating the intent rather than the result is what makes a character run on the spot against a wall.

Fields and properties (4)

  • public Vector2 Velocity

    Planar velocity in world space, in metres a second.

  • public float Facing

    Which way the body points, in radians about the world's up axis.

  • public float TurnRate

    How fast the facing is changing, in radians a second.

  • public bool IsGrounded

    Whether the feet are on something.

Methods (1)

  • public MoveState(Vector2 Velocity, float Facing, float TurnRate, bool IsGrounded)

    What a body is doing right now, as the gait model needs to see it.

Used by (3)

  • BipedGaitModelVixen.Animation
  • IGaitModelVixen.Animation
  • WheeledTestGaitModelVixen.Animation.Tests