Skip to main content
API Reference NianticSpatial.NSDK.AR.NavigationMesh

AgentConfiguration


Declaration

public readonly struct AgentConfiguration : ValueType

Constructors

public AgentConfiguration(int jumpPenalty, float jumpDistance, PathFindingBehaviour behaviour)

Fields

NameTypeSummary
BehaviourPathFindingBehaviour
Determines how the agent should behave when its destination is on a foreign surface.
JumpDistancefloat
The maximum distance an agent can jump in meters.
JumpPenaltyint
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

NameTypeSummary
static CreateJumpingAgentAgentConfiguration
-
static CreateSimpleAgentAgentConfiguration
-