From 90652f512e9621e0dfac497439c7c80bf113d9d5 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Mon, 21 Oct 2024 17:41:38 +0200 Subject: implement quadtree paritioning --- CollisionContext.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'CollisionContext.cpp') diff --git a/CollisionContext.cpp b/CollisionContext.cpp index 648b889..e7550e5 100644 --- a/CollisionContext.cpp +++ b/CollisionContext.cpp @@ -12,12 +12,6 @@ shared_ptr CollisionContext::get_quadtree() { } void CollisionContext::update() { - this->quadtree = std::make_shared(); - this->quadtree->boundary = { - .x = 0.0, - .y = 0.0, - .width = static_cast(this->museum.canvas.data.columns), - .height = static_cast(this->museum.canvas.data.rows), - }; + this->quadtree = std::make_shared(this->museum); } -- cgit v1.2.3