Skip to content

API Type TileCollision

github-actions[bot] edited this page Nov 29, 2026 · 3 revisions

Type Alias: TileCollision

type TileCollision = 
  | "none"
  | "full"
  | "oneWay"
  | TilePolygon
  | TileShapes;

Defined in: src/plugins/tilemaps/runtime/tileset.ts:49

How a tile collides: not at all, as the whole cell, as a one-way platform the size of the cell, as a polygon, or as several polygons (ADR 0439). Polygons are in the tile's cell box units (ADR 0437): [0, 0] bottom-left, [1, 1] top-right of the box its sprite is drawn in; "full" and "oneWay" mean the cell's own outline on any grid.

Clone this wiki locally