Skip to content

rayVsPlane3

rayVsPlane3(origin, dir, plane): number | null

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

Ray vs plane: the t at which the ray meets the plane, or null when the ray runs parallel to it or the plane lies behind the origin.

t is parametric in units of dir, exactly as in rayVsAabb3, so t <= 1 is a segment test.

Vec3

Vec3

Plane3

number | null