API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

T

typeTileRegionMode

@codexo/exojs-tilemap-physics / tilemap-physics / stable

How a run of solid whole-cell tiles is turned into colliders. `'boxes'` keeps the merged rectangles as solid `BoxShape` colliders: the region has an interior, so point queries, overlaps and sensors behave, and a body that starts inside solid tiles is pushed out. Adjacent rectangles share an internal edge, which a body sliding across can catch on. `'outline'` traces the boundary of each solid region into closed one-sided chains. Nothing is left to catch on inside a region, which is what a side-scroller wants, but the region has no interior: queries inside it find nothing and a body spawned inside it falls through.

0
props
0
methods
0
events
Import
import { TileRegionMode } from '@codexo/exojs-tilemap-physics'

How a run of solid whole-cell tiles is turned into colliders.

`'boxes'` keeps the merged rectangles as solid `BoxShape` colliders: the region has an interior, so point queries, overlaps and sensors behave, and a body that starts inside solid tiles is pushed out. Adjacent rectangles share an internal edge, which a body sliding across can catch on.

`'outline'` traces the boundary of each solid region into closed one-sided chains. Nothing is left to catch on inside a region, which is what a side-scroller wants, but the region has no interior: queries inside it find nothing and a body spawned inside it falls through.

Definition1
"boxes" | "outline"
Source