Prepare exact convex geometric queries with the pinned WASM narrow phase.
This creates no dynamics world, steps and impulses. Returned contacts retain
null impulse so a geometric witness cannot masquerade as a solver result.
Query allocations are owned and released by Rapier's Shape.contactShape API.
A capsule with an axis is measured as its native axis segment grown by its
radius: the pinned narrow phase reports shallow overlap of the full curved
capsule against a box as a positive gap (1.7 mm for #3791's rotated pair).
While the cores are apart the signed distance is exactly the core distance
less both radii, and the surface witnesses lie one radius along the normal;
intersecting cores, and pairs without a capsule, use the full shapes.
Prepare exact convex geometric queries with the pinned WASM narrow phase. This creates no dynamics world, steps and impulses. Returned contacts retain null impulse so a geometric witness cannot masquerade as a solver result. Query allocations are owned and released by Rapier's Shape.contactShape API. A capsule with an axis is measured as its native axis segment grown by its radius: the pinned narrow phase reports shallow overlap of the full curved capsule against a box as a positive gap (1.7 mm for #3791's rotated pair). While the cores are apart the signed distance is exactly the core distance less both radii, and the surface witnesses lie one radius along the normal; intersecting cores, and pairs without a capsule, use the full shapes.