Skip to content

aabbContainsPoint

aabbContainsPoint(box, p): boolean

Defined in: src/modules/collision/narrowphase.ts:48

True when p lies inside the box or exactly on its edge. Boundary-inclusive, unlike the strict aabbVsAabb, so a point on a shared edge belongs to both boxes — the answer picking and “am I inside a wall?” both want.

Aabb

Vec2

boolean