@pmndrs/bvh
    Preparing search index...

    Interface BvhRaycastHit

    One hit, as CpuMeshBvh.raycast returns it.

    interface BvhRaycastHit {
        distance: number;
        frontFace: boolean;
        point: [number, number, number];
        t: number;
        triangle: number;
        u: number;
        v: number;
    }
    Index
    distance: number

    Distance from the ray's origin to the point.

    frontFace: boolean

    True when the ray hit the authored front side (counter-clockwise corners, seen from the ray).

    point: [number, number, number]
    t: number

    The point is origin + t * direction (with the direction as given).

    triangle: number

    The triangle's original index (in the input's index order).

    u: number

    Barycentric weights of corners 1 and 2; corner 0 has 1 - u - v.

    v: number