Documentation
    Preparing search index...

    Interface WorldRaycastHit

    One intersection along a ray (§30 world.raycast).

    interface WorldRaycastHit {
        body: RigidBody;
        collider: Collider;
        distance: number;
        normal: Vector3;
        point: Vector3;
    }

    Hierarchy (View Summary)

    Index
    body: RigidBody

    The body owning WorldQueryHit.collider.

    collider: Collider

    The collider that was hit, as the §6a component.

    distance: number

    Distance from the ray origin, in world units.

    normal: Vector3

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

    point: Vector3

    Intersection point in world space.