Documentation
    Preparing search index...

    Interface PointHit

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

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

    Hierarchy (View Summary)

    Index

    The body owning QueryHit.collider.

    The collider that was hit.

    distance: number

    Distance from the query point to the collider's surface, in world units. 0 when the point is inside.

    point: Vector3

    The closest point on the collider's surface to the query point, in world space. Equal to the query point when it lies inside the collider.