@@ -3,11 +3,10 @@ use std::collections::HashMap;
33use std:: sync:: RwLock ;
44
55use rapier:: prelude:: {
6- BroadPhase , CCDSolver , ColliderHandle , ColliderSet , EventHandler , FeatureId ,
7- ImpulseJointHandle , ImpulseJointSet , IntegrationParameters , IslandManager ,
6+ Aabb as RapierAabb , BroadPhase , CCDSolver , ColliderHandle , ColliderSet , EventHandler ,
7+ FeatureId , ImpulseJointHandle , ImpulseJointSet , IntegrationParameters , IslandManager ,
88 MultibodyJointHandle , MultibodyJointSet , NarrowPhase , PhysicsHooks , PhysicsPipeline ,
99 QueryFilter as RapierQueryFilter , QueryPipeline , Ray , Real , RigidBodyHandle , RigidBodySet ,
10- AABB ,
1110} ;
1211
1312use crate :: geometry:: { Collider , PointProjection , RayIntersection , Toi } ;
@@ -708,19 +707,19 @@ impl RapierContext {
708707 } )
709708 }
710709
711- /// Finds all entities of all the colliders with an AABB intersecting the given AABB .
710+ /// Finds all entities of all the colliders with an Aabb intersecting the given Aabb .
712711 pub fn colliders_with_aabb_intersecting_aabb (
713712 & self ,
714713 aabb : Aabb ,
715714 mut callback : impl FnMut ( Entity ) -> bool ,
716715 ) {
717716 #[ cfg( feature = "dim2" ) ]
718- let scaled_aabb = AABB {
717+ let scaled_aabb = RapierAabb {
719718 mins : ( aabb. min ( ) . xy ( ) / self . physics_scale ) . into ( ) ,
720719 maxs : ( aabb. max ( ) . xy ( ) / self . physics_scale ) . into ( ) ,
721720 } ;
722721 #[ cfg( feature = "dim3" ) ]
723- let scaled_aabb = AABB {
722+ let scaled_aabb = RapierAabb {
724723 mins : ( aabb. min ( ) / self . physics_scale ) . into ( ) ,
725724 maxs : ( aabb. max ( ) / self . physics_scale ) . into ( ) ,
726725 } ;
0 commit comments