Outsource the Shape trait, wquadtree, and shape types.
This commit is contained in:
@@ -47,7 +47,10 @@ impl QueryPipeline {
|
||||
}
|
||||
}
|
||||
|
||||
self.quadtree.update(colliders, self.dilation_factor);
|
||||
self.quadtree.update(
|
||||
|handle| colliders[*handle].compute_aabb(),
|
||||
self.dilation_factor,
|
||||
);
|
||||
}
|
||||
|
||||
/// Find the closest intersection between a ray and a set of collider.
|
||||
|
||||
Reference in New Issue
Block a user