Outsource the Shape trait, wquadtree, and shape types.

This commit is contained in:
Crozet Sébastien
2020-12-14 15:51:43 +01:00
parent 9bf1321f8f
commit cc6d1b9730
47 changed files with 444 additions and 3363 deletions

View File

@@ -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.