Documentation
    Preparing search index...

    Interface WorldPointHit

    One collider containing the queried point (§30 world.pointQuery).

    interface WorldPointHit {
        body: RigidBody;
        collider: Collider;
        distance: number;
        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 query point to that surface; 0 when inside.

    point: Vector3

    The closest point on the collider's surface, in world space.