aabb3VsAabb3Swept
aabb3VsAabb3Swept(
a,motionA,b):SweptHit3
Defined in: src/modules/collision-3d/narrowphase3.ts:219
Swept AABB: a moves by motionA toward static b. Returns the fraction of
the motion at which they first touch (tEntry ∈ [0, 1]) and the contact
normal on b. Returns the shared frozen NO_SWEPT_HIT sentinel when there
is no collision this step.
The classic Minkowski-sum sweep, one axis at a time: the true entry is the
latest per-axis entry and the true exit the earliest per-axis exit; they must
overlap and fall within [0, 1]. Already-penetrating pairs return no hit —
callers that need depenetration run aabb3VsAabb3 first.
Corner tie-break: unlike rayVsAabb3, a tie on entry time goes to the
later axis in x, y, z order, matching aabbVsAabbSwept in the 2D sibling
(where a tie favours the y normal over x).