Documentation
    Preparing search index...

    Interface RaycastHit

    One intersection along a ray (§30, §37 raycast).

    interface RaycastHit {
        body: PhysicsBodyHandle;
        collider: PhysicsColliderHandle;
        distance: number;
        normal: Vector3;
        point: Vector3;
    }

    Hierarchy (View Summary)

    Index

    The body owning QueryHit.collider.

    The collider that was hit.

    distance: number

    Distance from the ray origin to RaycastHit.point, in world units along the normalized ray direction.

    normal: Vector3

    Unit surface normal at the intersection, in world space, pointing out of the hit collider.

    point: Vector3

    Intersection point in world space.