Atlas Engine
API Referencebezel

RaycastResult

Ray query hits and nearest-hit information; hit is null when no closest hit exists.

Module: bezel

Ray query hits and nearest-hit information; hit is null when no closest hit exists.

Declaration

export type RaycastResult = {
        hits: RaycastHit[];
        hit: RaycastHit | null;
        closestDistance: number;
    };

Properties

hits

hits: RaycastHit[];

hit

hit: RaycastHit | null;

closestDistance

closestDistance: number;

On this page