Skip to content

rayVsObb3

rayVsObb3(origin, dir, obb): RayHit3 | null

Defined in: src/modules/collision-3d/obb3.ts:58

Ray vs oriented box. Same contract as rayVsAabb3 — including the t convention that makes t <= 1 a segment test — but the reported axis names one of the box’s own axes (its local x/y/z), not a world axis.

Vec3

Vec3

Obb3

RayHit3 | null