Skip to content

PathfindOptions

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

optional diagonal?: boolean

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

Allow 8-connected diagonal moves. Default true.


optional snapRadius?: number

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

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.