Documentation - v19.16.0-dev
    Preparing search index...

    Options of the raycasts of a scene (Raycaster.intersect).

    interface RaycastOptions {
        far?: number;
        lineThreshold?: LineThreshold;
        near?: number;
        onlyFirst?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    far?: number

    Hits farther than this along the ray, in world units from its origin, are left out.

    lineThreshold?: LineThreshold

    How near to a line the ray must pass to hit it, for a part drawing lines (see LineThreshold.fromCamera). Default: only a line the ray crosses.

    near?: number

    Hits nearer than this along the ray, in world units from its origin, are left out (default 0): with far, the part of the ray kept, e.g. by the cutting planes (CuttingPlanesController.getRayInterval). A triangle behind one left out can be hit.

    onlyFirst?: boolean

    Only the hit seen (default true): the nearest, in the highest layer for a scene.