BuildNavGridOptions
此内容尚不支持你的语言。
Defined in: ai/nav/navGridFromTilemap.ts:20
Properties
Section titled “Properties”blockedTileIds?
Section titled “blockedTileIds?”
optionalblockedTileIds?:Iterable<number,any,any>
Defined in: ai/nav/navGridFromTilemap.ts:28
Exact set of tile ids that block movement. Ignored if isBlocked is given.
cellSize
Section titled “cellSize”cellSize:
number
Defined in: ai/nav/navGridFromTilemap.ts:24
World pixels per cell.
height
Section titled “height”height:
number
Defined in: ai/nav/navGridFromTilemap.ts:22
isBlocked?
Section titled “isBlocked?”
optionalisBlocked?: (tileId) =>boolean
Defined in: ai/nav/navGridFromTilemap.ts:34
Custom blocking predicate over the tile id (0 = empty). Overrides
blockedTileIds. Default: with blockedTileIds set, only those block;
otherwise any non-empty tile blocks (treats the layer as an obstacle map).
Parameters
Section titled “Parameters”tileId
Section titled “tileId”number
Returns
Section titled “Returns”boolean
origin?
Section titled “origin?”
optionalorigin?:Vec2
Defined in: ai/nav/navGridFromTilemap.ts:26
World position of cell (0,0)’s center.
width:
number
Defined in: ai/nav/navGridFromTilemap.ts:21