NavAgentData
此内容尚不支持你的语言。
Defined in: ai/nav/NavAgent.ts:18
Properties
Section titled “Properties”arrived
Section titled “arrived”arrived:
boolean
Defined in: ai/nav/NavAgent.ts:39
Set true by the system the frame the agent reaches its goal.
arriveRadius
Section titled “arriveRadius”arriveRadius:
number
Defined in: ai/nav/NavAgent.ts:29
Stop distance from the final goal, in pixels.
hasTarget
Section titled “hasTarget”hasTarget:
boolean
Defined in: ai/nav/NavAgent.ts:33
Whether a destination is set. Cleared on arrival or stopNavAgent.
radius
Section titled “radius”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
Section titled “repathInterval”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
Section titled “targetX”targetX:
number
Defined in: ai/nav/NavAgent.ts:35
Destination in world pixels.
targetY
Section titled “targetY”targetY:
number
Defined in: ai/nav/NavAgent.ts:36
targetZ
Section titled “targetZ”targetZ:
number
Defined in: ai/nav/NavAgent.ts:37