Skip to content

NavAgentData

Defined in: ai/nav/NavAgent.ts:18

arrived: boolean

Defined in: ai/nav/NavAgent.ts:39

Set true by the system the frame the agent reaches its goal.


arriveRadius: number

Defined in: ai/nav/NavAgent.ts:29

Stop distance from the final goal, in pixels.


hasTarget: boolean

Defined in: ai/nav/NavAgent.ts:33

Whether a destination is set. Cleared on arrival or stopNavAgent.


radius: number

Defined in: ai/nav/NavAgent.ts:27

How wide the body is, in pixels. Planning routes it around anything it would not fit through. 0 routes it as a point, which is what every agent did before this was honoured — so it stays the default, rather than silently re-routing every project that already shipped.


repathInterval: number

Defined in: ai/nav/NavAgent.ts:31

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: number

Defined in: ai/nav/NavAgent.ts:35

Destination in world pixels.


targetY: number

Defined in: ai/nav/NavAgent.ts:36


targetZ: number

Defined in: ai/nav/NavAgent.ts:37