跳转到内容

NavGridOptions

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

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

cellSize: number

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

World pixels per cell (square).


height: number

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

Cell rows.


optional origin?: Vec2

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

World position of cell (0,0)’s center. Defaults to origin.


optional walkable?: ArrayLike<number>

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

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:23

Cell columns.