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).
Properties
Section titled “Properties”
readonlyhit:boolean
Defined in: src/modules/collision-3d/narrowphase3.ts:49
normal
Section titled “normal”
readonlynormal: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.
tEntry
Section titled “tEntry”
readonlytEntry:number
Defined in: src/modules/collision-3d/narrowphase3.ts:53
Fraction of motionA travelled before impact; 1 when there is no hit.