Skip to content

BuildCollisionGridOptions

Defined in: src/modules/tilemap/collision-grid.ts:18

Options for buildCollisionGrid.

floorGids: ReadonlySet<number>

Defined in: src/modules/tilemap/collision-grid.ts:24

GIDs that define walkable ground (typically the bottom layer’s floor tiles). A cell whose ground-layer tile is NOT in this set is always solid regardless of upper layers.


walkablePropGids: ReadonlySet<number>

Defined in: src/modules/tilemap/collision-grid.ts:33

GIDs for walkable decorations on upper layers — chairs, rails, carpets that sit on top of walkable ground without blocking movement. A cell stays walkable when every upper-layer tile on it is either empty (gid 0) or in this set. A tile whose GID is in neither allowlist on any upper layer makes the cell solid (walls, furniture, NPC sprites baked into the tile layer).