Skip to content

rayPlaneZ0(raycaster, object): RayPlaneHit | null

Defined in: packages/three-flatland/src/events/raycastHelpers.ts:22

Intersect the raycaster’s ray with object’s local Z=0 plane. Returns local hit coordinates + world distance, or null when the ray is parallel, the plane is behind the origin, or the hit falls outside raycaster.near/far. Allocation-free.

Raycaster 

Object3D 

RayPlaneHit | null