NavAgentData
Defined in: ai/nav/NavAgent.ts:18
Properties
Section titled “Properties”arrived
Section titled “arrived”arrived:
boolean
Defined in: ai/nav/NavAgent.ts:33
Set true by the system the frame the agent reaches its goal.
arriveRadius
Section titled “arriveRadius”arriveRadius:
number
Defined in: ai/nav/NavAgent.ts:24
Stop distance from the final goal, in pixels.
hasTarget
Section titled “hasTarget”hasTarget:
boolean
Defined in: ai/nav/NavAgent.ts:28
Whether a destination is set. Cleared on arrival or stopNavAgent.
radius
Section titled “radius”radius:
number
Defined in: ai/nav/NavAgent.ts:22
Agent radius in pixels (arrival tolerance + future collision size).
repathInterval
Section titled “repathInterval”repathInterval:
number
Defined in: ai/nav/NavAgent.ts:26
Replan cadence in seconds while moving; 0 = replan only when the target changes.
speed:
number
Defined in: ai/nav/NavAgent.ts:20
Movement speed in world pixels per second.
targetX
Section titled “targetX”targetX:
number
Defined in: ai/nav/NavAgent.ts:30
Destination in world pixels.
targetY
Section titled “targetY”targetY:
number
Defined in: ai/nav/NavAgent.ts:31