csharp
public readonly record struct MoveStateWhat 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 VelocityPlanar velocity in world space, in metres a second.
public float FacingWhich way the body points, in radians about the world's up axis.
public float TurnRateHow fast the facing is changing, in radians a second.
public bool IsGroundedWhether 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