Skip to content

ShapeAabb

Defined in: src/modules/collision/shape-aabb.ts:12

Axis-aligned bounding box shape. Anchored at PositionDef.{x,y} as the top-left corner — matches the platformer’s physics convention.

Width and height are in the same units as PositionDef (pixels for Canvas2D games, cells for tile games), and must be non-negative.

h: number

Defined in: src/modules/collision/shape-aabb.ts:13


w: number

Defined in: src/modules/collision/shape-aabb.ts:14