Skip to content
EvilEngine.Api.Agents

AgentCommand record struct

public readonly record struct AgentCommand

A raw command for an agent’s body, the same a player’s input fills, given with Command.

Assembly
EvilEngine.Api
Commit
4ff877b1

Members

AgentCommand constructor

public AgentCommand(double Forward, double Side, double Up, double Pitch, double Yaw, AgentButtons Buttons)

Makes a command.

Forward property

public double Forward { get; init; }

How far forward to move, from -1 back to 1 forward, of the speed its buttons give.

Side property

public double Side { get; init; }

How far to the right to move, from -1 left to 1 right.

Up property

public double Up { get; init; }

How far up to move while flying or swimming, from -1 down to 1 up.

Pitch property

public double Pitch { get; init; }

Where it looks up or down.

Yaw property

public double Yaw { get; init; }

Which way it moves and faces.

Buttons property

public AgentButtons Buttons { get; init; }

The buttons it holds.