API

Interface ShapeProximityQuery

Query parameters for shapeProximity.

interface ShapeProximityQuery {
    maxDistance: number;
    position: Vec3;
    rotation: Quat;
    shape: PhysicsShape;
    shouldHitTriggers?: boolean;
}
Index
maxDistance: number

Maximum distance to search for a nearby body.

position: Vec3

World-space position of the query shape.

rotation: Quat

World-space orientation of the query shape.

Shape to test for proximity.

shouldHitTriggers?: boolean

Whether trigger volumes count as hits. Default false.