aboutsummaryrefslogtreecommitdiff
path: root/src/pipeline
diff options
context:
space:
mode:
Diffstat (limited to 'src/pipeline')
-rw-r--r--src/pipeline/query_pipeline/mod.rs19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/pipeline/query_pipeline/mod.rs b/src/pipeline/query_pipeline/mod.rs
index 06a5e2f..95e1f00 100644
--- a/src/pipeline/query_pipeline/mod.rs
+++ b/src/pipeline/query_pipeline/mod.rs
@@ -480,20 +480,17 @@ impl QueryPipeline {
filter: QueryFilter,
) -> Option<ColliderHandle> {
let pipeline_shape = self.as_composite_shape(bodies, colliders, filter);
- #[allow(deprecated)]
// TODO: replace this with IntersectionCompositeShapeShapeVisitor when it
// can return the shape part id.
- let mut visitor =
- parry::query::details::IntersectionCompositeShapeShapeBestFirstVisitor::new(
- &*self.query_dispatcher,
- shape_pos,
- &pipeline_shape,
- shape,
- );
+ let mut visitor = parry::query::details::IntersectionCompositeShapeShapeVisitor::new(
+ &*self.query_dispatcher,
+ shape_pos,
+ &pipeline_shape,
+ shape,
+ );
- self.qbvh
- .traverse_best_first(&mut visitor)
- .map(|h| (h.1 .0))
+ self.qbvh.traverse_depth_first(&mut visitor);
+ visitor.found_intersection
}
/// Find the projection of a point on the closest collider.