Skip to content

tileCollisionOutlines

tileCollisionOutlines(chunks, model, tileW, tileH, originX, originY): TileCollisionPiece[]

Defined in: tilemap/tileCollisionOutline.ts:54

Build world-pixel collision outlines for every placed collidable cell of a layer, given its decoded chunks + resolved TilesetModel. tileW/tileH are the layer cell size; originX/originY the layer’s world origin (its Transform position, world y-up) — the same convention the native spawn uses, so an outline sits where its collider would.

DecodedChunk[]

TilesetModel

number

number

number

number

TileCollisionPiece[]