aboutsummaryrefslogtreecommitdiff
path: root/src/pipeline/query_pipeline
diff options
context:
space:
mode:
authorThierry Berger <contact@thierryberger.com>2025-01-08 17:16:34 +0100
committerGitHub <noreply@github.com>2025-01-08 17:16:34 +0100
commitdc4bd24da869cfa8143c3ee9a98cdec662db289e (patch)
tree6ea25968a264636f40c4042ef19f3a25d9c4f52f /src/pipeline/query_pipeline
parentcf77b5bf574f8363794f979510deec5c08e58401 (diff)
downloadrapier-dc4bd24da869cfa8143c3ee9a98cdec662db289e.tar.gz
rapier-dc4bd24da869cfa8143c3ee9a98cdec662db289e.tar.bz2
rapier-dc4bd24da869cfa8143c3ee9a98cdec662db289e.zip
Update to Parry 0.18 (#770)
* update to parry ~main * use traverse_depth_first * add example to test intersection * rely on upstream PR rather than local * re-enable profiler_ui for examples * rely on official parry repository * chore: switch back to the published version of parry * chore: update changelog * chore: remove dead code * fix compilation of rapier3d-meshloader and rapier3d-urdf * chore: cargo fmt --------- Co-authored-by: Sébastien Crozet <sebcrozet@dimforge.com>
Diffstat (limited to 'src/pipeline/query_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.