Bitbybit Docs
    Preparing search index...

    Type Alias RayHit (Inputs.Manifold)

    One place a ray segment crosses the surface of a solid, as manifold.evaluate.rayCast reports it: the triangle's original face, how far along the segment it lies as a fraction of the segment's length (0 at the origin, 1 at the endpoint), the point and the surface normal there.

    type RayHit = {
        faceID: number;
        distance: number;
        position: Point3;
        normal: Vector3;
    }
    Index

    Properties

    faceID: number
    distance: number
    position: Point3
    normal: Vector3