diff --git a/csg/src/brush.rs b/csg/src/brush.rs index cc34a9f..a2a4d88 100644 --- a/csg/src/brush.rs +++ b/csg/src/brush.rs @@ -64,6 +64,10 @@ impl Brush { self.aabb = Aabb::from_positions(&self.vertices); } + pub fn aabb_intersects_with(&self, other: &Brush) -> bool { + self.aabb.intersects(other.get_aabb()) + } + pub fn get_vertices(&self) -> Vec { self.vertices.clone() }