NavGridOptions
此内容尚不支持你的语言。
Defined in: ai/nav/NavGrid.ts:21
Properties
Section titled “Properties”cellSize
Section titled “cellSize”cellSize:
number
Defined in: ai/nav/NavGrid.ts:27
World pixels per cell (square).
height
Section titled “height”height:
number
Defined in: ai/nav/NavGrid.ts:25
Cell rows.
origin?
Section titled “origin?”
optionalorigin?:Vec2
Defined in: ai/nav/NavGrid.ts:29
World position of cell (0,0)’s center. Defaults to origin.
walkable?
Section titled “walkable?”
optionalwalkable?: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.