FAILURE MAP
← Case archive

FA-87643 / Collision detection broadphase / Member archive

Home cell is computed from the box centre · case 03

Neighbor search offsets assume the min corner and miss overlaps.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

Case contract

solve(objs, base, levels): multi-level grid. Each [id,minx,miny,maxx,maxy] goes to the smallest level l (cell size base*2^l) whose cell size is >= the larger box extent, capped at levels-1; its home cell is floor(min corner / level cell size). Return sorted [[id, level, cx, cy]].

Why this case matters

Broadphase stages decide which object pairs ever reach narrowphase; a wrong boundary, ordering or bookkeeping rule silently drops real contacts or floods the solver with false candidates.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
case 0[[3, 2, 0, 1], [8, 0, 4, -1], [10, 2, -1, 0], [15, 2, 1, -1], [17, 2, -1, 1], [28, 2, 0, 0], [34, 2, -1, 1], [39, 1, 1, -2]][[3, 2, -1, 0], [8, 0, 4, -1], [10, 2, -1, -1], [15, 2, 0, -1], [17, 2, -2, 1], [28, 2, 0, 0], [34, 2, -1, 1], [39, 1, 1, -3]]Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗