AgentConfiguration
Declaration
public readonly struct AgentConfiguration : ValueTypeConstructors
public AgentConfiguration(int jumpPenalty, float jumpDistance, PathFindingBehaviour behaviour)
Fields
| Name | Type | Summary |
|---|---|---|
| Behaviour | PathFindingBehaviour | Determines how the agent should behave when its destination is on a foreign surface. |
| JumpDistance | float | The maximum distance an agent can jump in meters. |
| JumpPenalty | int | Determines the cost of jumping. @discussion Being off-surface includes steps taken at the jumping off point and steps taken mid-jump. If there is a 1 cell block between the start and the destination, assuming going around takes ~3 points, then jumping over with no penalty will cost 2 points, jumping over with 1 penalty will cost 3 points, and so on... If there is a gap between the two surfaces, the cost of jumping will aggregate with each step until the agent lands on a surface. |
Methods
| Name | Type | Summary |
|---|---|---|
| static CreateJumpingAgent | AgentConfiguration | - |
| static CreateSimpleAgent | AgentConfiguration | - |