AgentCommand record struct
public readonly record struct AgentCommand - Assembly
- EvilEngine.Api
- Commit
- 4ff877b1
public readonly record struct AgentCommand public AgentCommand(double Forward, double Side, double Up, double Pitch, double Yaw, AgentButtons Buttons) Makes a command.
public double Forward { get; init; } How far forward to move, from -1 back to 1 forward, of the speed its buttons give.
public double Side { get; init; } How far to the right to move, from -1 left to 1 right.
public double Up { get; init; } How far up to move while flying or swimming, from -1 down to 1 up.
public double Pitch { get; init; } Where it looks up or down.
public double Yaw { get; init; } Which way it moves and faces.