Skip to content

SweptHit3

Defined in: src/modules/collision-3d/narrowphase3.ts:48

Result of a swept Aabb3 test: whether it hit, the surface normal, and tEntry (fraction of the motion before impact).

readonly hit: boolean

Defined in: src/modules/collision-3d/narrowphase3.ts:49


readonly normal: Vec3

Defined in: src/modules/collision-3d/narrowphase3.ts:51

Unit normal on b’s surface at contact. Zero vector when there is no hit.


readonly tEntry: number

Defined in: src/modules/collision-3d/narrowphase3.ts:53

Fraction of motionA travelled before impact; 1 when there is no hit.