pub fn intersection_with_shape(
        &self,
        colliders: &ColliderSet,
        shape_pos: &Isometry<Real>,
        shape: &dyn Shape,
        groups: InteractionGroups,
    ) -> Option<ColliderHandle> {
        let pipeline_shape = self.as_composite_shape(colliders, groups);
        let mut visitor = IntersectionCompositeShapeShapeBestFirstVisitor::new(
            &*self.query_dispatcher,
            shape_pos,
            &pipeline_shape,
            shape,
        );

        self.quadtree
            .traverse_best_first(&mut visitor)
            .map(|h| (h.1 .0))
    }
/// Gets the handle of up to one collider intersecting the given shape.
///
/// # Parameters
/// * `colliders` - The set of colliders taking part in this pipeline.
/// * `shape_pos` - The position of the shape used for the intersection test.
/// * `shape` - The shape used for the intersection test.
/// * `groups` - The bit groups and filter associated to the ray, in order to only
///   hit the colliders with collision groups compatible with the ray's group.
Gets the handle of up to one collider intersecting the given shape.
Gets the handle of up to one collider intersecting the given shape .
pub fn intersection_with_shape(
        &self,
        colliders: &ColliderSet,
        shape_pos: &Isometry<Real>,
        shape: &dyn Shape,
        groups: InteractionGroups,
    ) -> Option<ColliderHandle> {
        let pipeline_shape = self.as_composite_shape(colliders, groups);
        let mut visitor = IntersectionCompositeShapeShapeBestFirstVisitor::new(
            &*self.query_dispatcher,
            shape_pos,
            &pipeline_shape,
            shape,
        );
        self.quadtree
            .traverse_best_first(&mut visitor)
            .map(|h| (h.1 .0))
    }
pub fn intersection_with_shape ( & self , colliders : & ColliderSet , shape_pos : & Isometry < Real > , shape : & dyn Shape , groups : InteractionGroups , ) -> Option < ColliderHandle > { let pipeline_shape = self . as_composite_shape ( colliders , groups ) ; let mut visitor = IntersectionCompositeShapeShapeBestFirstVisitor :: new ( & * self . query_dispatcher , shape_pos , & pipeline_shape , shape , ) ; self . quadtree . traverse_best_first ( & mut visitor ) . map ( | h | ( h . 1 . 0 ) ) }
Gets the handle of up to one collider intersecting the given shape.
Gets the handle of up to one collider intersecting the given shape .
&self
colliders
&ColliderSet
shape_pos
&Isometry<Real>
shape
&dyn Shape
groups
InteractionGroups