@@ -211,19 +211,19 @@ impl<'a> QueryPipeline<'a> {
211211 #[ profiling:: function]
212212 pub fn intersect_ray (
213213 & ' a self ,
214- ray : & ' a Ray ,
214+ ray : Ray ,
215215 max_toi : Real ,
216216 solid : bool ,
217217 ) -> impl Iterator < Item = ( ColliderHandle , & ' a Collider , RayIntersection ) > + ' a {
218218 // TODO: add this to CompositeShapeRef?
219219 self . bvh
220- . leaves ( move |node : & BvhNode | node. aabb ( ) . intersects_local_ray ( ray, max_toi) )
220+ . leaves ( move |node : & BvhNode | node. aabb ( ) . intersects_local_ray ( & ray, max_toi) )
221221 . filter_map ( move |leaf| {
222222 let ( co, co_handle) = self . colliders . get_unknown_gen ( leaf) ?;
223223 if self . filter . test ( self . bodies , co_handle, co) {
224224 if let Some ( intersection) =
225225 co. shape
226- . cast_ray_and_get_normal ( co. position ( ) , ray, max_toi, solid)
226+ . cast_ray_and_get_normal ( co. position ( ) , & ray, max_toi, solid)
227227 {
228228 return Some ( ( co_handle, co, intersection) ) ;
229229 }
@@ -259,15 +259,15 @@ impl<'a> QueryPipeline<'a> {
259259 #[ profiling:: function]
260260 pub fn intersect_point (
261261 & ' a self ,
262- point : & ' a Point < Real > ,
262+ point : Point < Real > ,
263263 ) -> impl Iterator < Item = ( ColliderHandle , & ' a Collider ) > + ' a {
264264 // TODO: add to CompositeShapeRef?
265265 self . bvh
266- . leaves ( move |node : & BvhNode | node. aabb ( ) . contains_local_point ( point) )
266+ . leaves ( move |node : & BvhNode | node. aabb ( ) . contains_local_point ( & point) )
267267 . filter_map ( move |leaf| {
268268 let ( co, co_handle) = self . colliders . get_unknown_gen ( leaf) ?;
269269 if self . filter . test ( self . bodies , co_handle, co)
270- && co. shape . contains_point ( co. position ( ) , point)
270+ && co. shape . contains_point ( co. position ( ) , & point)
271271 {
272272 return Some ( ( co_handle, co) ) ;
273273 }
@@ -299,11 +299,11 @@ impl<'a> QueryPipeline<'a> {
299299 #[ profiling:: function]
300300 pub fn intersect_aabb_conservative (
301301 & ' a self ,
302- aabb : & ' a Aabb ,
302+ aabb : Aabb ,
303303 ) -> impl Iterator < Item = ( ColliderHandle , & ' a Collider ) > + ' a {
304304 // TODO: add to ColliderRef?
305305 self . bvh
306- . leaves ( move |node : & BvhNode | node. aabb ( ) . intersects ( aabb) )
306+ . leaves ( move |node : & BvhNode | node. aabb ( ) . intersects ( & aabb) )
307307 . filter_map ( move |leaf| {
308308 let ( co, co_handle) = self . colliders . get_unknown_gen ( leaf) ?;
309309 // NOTE: do **not** recompute and check the latest collider AABB.
@@ -388,11 +388,11 @@ impl<'a> QueryPipeline<'a> {
388388 #[ profiling:: function]
389389 pub fn intersect_shape (
390390 & ' a self ,
391- shape_pos : & ' a Isometry < Real > ,
391+ shape_pos : Isometry < Real > ,
392392 shape : & ' a dyn Shape ,
393393 ) -> impl Iterator < Item = ( ColliderHandle , & ' a Collider ) > + ' a {
394394 // TODO: add this to CompositeShapeRef?
395- let shape_aabb = shape. compute_aabb ( shape_pos) ;
395+ let shape_aabb = shape. compute_aabb ( & shape_pos) ;
396396 self . bvh
397397 . leaves ( move |node : & BvhNode | node. aabb ( ) . intersects ( & shape_aabb) )
398398 . filter_map ( move |leaf| {
0 commit comments