@urth/metatell-sdk - v0.1.0
    Preparing search index...

    Interface RaycastHit

    The result of a successful raycast into the scene.

    raycast in @urth/metatell-sdk/input.

    interface RaycastHit {
        distance: number;
        normal?: Vector3Data;
        objectId: string;
        point: Vector3Data;
    }
    Index
    distance: number

    Distance from the ray origin to the hit point.

    normal?: Vector3Data

    Surface normal at the hit point, if available.

    objectId: string

    Id of the object that was hit.

    World-space point where the ray hit the object.