Skip to content

NavGridOptions

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

cellSize: number

Defined in: ai/nav/NavGrid.ts:36

World pixels per cell (square).


height: number

Defined in: ai/nav/NavGrid.ts:34

Cell rows.


optional origin?: object

Defined in: ai/nav/NavGrid.ts:39

World position of cell (0,0)’s centre. Its z is the depth every waypoint comes back at — the plane the scene is drawn on. Defaults to the origin.

x: number

y: number

optional z?: number


optional walkable?: ArrayLike<number>

Defined in: ai/nav/NavGrid.ts:44

Walkability, row-major width * height, 1 = walkable / 0 = blocked. Defaults to fully walkable. Copied in, not retained.


width: number

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

Cell columns.