Skip to content

API Interface TilePolygon

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

Interface: TilePolygon

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

A polygon in cell units: [0, 0] is the cell's bottom-left corner, [1, 1] its top-right.

Properties

oneWay?

oneWay?: boolean;

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

Collide only from above (bodies pass up through it).


polygon

polygon: [number, number][];

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

Clone this wiki locally