跳转到内容

PathfindOptions

此内容尚不支持你的语言。

Defined in: ai/nav/pathfind.ts:17

optional clearance?: number

Defined in: ai/nav/pathfind.ts:30

Cells of room the agent needs on every step — a body has width, and a path planned for a point hands it one that only its centre fits through. 0 (default) plans for a point.


optional diagonal?: boolean

Defined in: ai/nav/pathfind.ts:19

Allow 8-connected diagonal moves. Default true.


optional snapRadius?: number

Defined in: ai/nav/pathfind.ts:24

When start/goal lands on a blocked cell, snap to the nearest walkable one within this ring radius before searching. 0 disables snapping. Default 8.