Files
2026-07-17 18:23:16 +00:00

19 lines
493 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
namespace GameCli;
/// <summary>
/// Immutable ship pose + velocity in world coordinates.
/// World is [0,1] × [0,1]. Y increases downward (screen-native).
/// Angle=0 means "ship pointing up" (main engine points down).
/// Positive angle rotates clockwise.
/// </summary>
public readonly record struct ShipState(
float X,
float Y,
float VX,
float VY,
float Angle,
float AngularVelocity)
{
public static ShipState AtCenter() => new(0.5f, 0.5f, 0f, 0f, 0f, 0f);
}