AgentMove record
public sealed record AgentMove How an agent moves to a goal.
agent.MoveTo(target, new AgentMove { Gait = AgentMove.Run, Within = 1.2 });
- Assembly
- EvilEngine.Api
- Commit
- 4ff877b1
public sealed record AgentMove How an agent moves to a goal.
agent.MoveTo(target, new AgentMove { Gait = AgentMove.Run, Within = 1.2 });
public AgentMove() Makes a move at a walk, as near the goal as it can get.
public const string Walk = "walk" walk, the gait for walking.
public const string Run = "run" run, the gait for running.
public string Gait { get; init; } The gait it moves at, walk unless set: the body plays the slot of that name, and the agent record’s speeds say how fast, a number or clip for the moving clip’s own ground speed.
public double Within { get; init; } How near the goal is near enough, in metres, 0 for as near as it can get.
public double? Speed { get; init; } A speed in metres a second that beats the record’s for this move, or null.