Interface ShapeProximityQuery
interface ShapeProximityQuery {
maxDistance: number;
position: Vec3;
rotation: Quat;
shape: PhysicsShape;
shouldHitTriggers?: boolean;
}
maxDistance: number;
position: Vec3;
rotation: Quat;
shape: PhysicsShape;
shouldHitTriggers?: boolean;
}
Properties
max Distance
maxDistance: number
Maximum distance to search for a nearby body.
position
World-space position of the query shape.
rotation
World-space orientation of the query shape.
shape
Shape to test for proximity.
Optionalshould Hit Triggers
shouldHitTriggers?: boolean
Whether trigger volumes count as hits. Default false.
Query parameters for shapeProximity.