PathfindOptions
Defined in: ai/nav/pathfind.ts:17
Properties
Section titled “Properties”clearance?
Section titled “clearance?”
optionalclearance?: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.
diagonal?
Section titled “diagonal?”
optionaldiagonal?:boolean
Defined in: ai/nav/pathfind.ts:19
Allow 8-connected diagonal moves. Default true.
snapRadius?
Section titled “snapRadius?”
optionalsnapRadius?: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.