Skip to content

Navigation

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

new Navigation(): Navigation

Navigation

grid: NavGrid | null = null

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

The active navigation grid, or null until one is built and installed.

findWorldPath(from, to, opts?): Vec2[] | null

Defined in: ai/nav/Navigation.ts:32

Plan a world-space path (cell-center waypoints) between two world points, or null if there is no grid or no route.

Vec2

Vec2

PathfindOptions

Vec2[] | null


hasGrid(): boolean

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

boolean


setGrid(grid): void

Defined in: ai/nav/Navigation.ts:20

NavGrid | null

void