aboutsummaryrefslogtreecommitdiff
path: root/CollisionContext.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-21 17:41:38 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-21 17:41:38 +0200
commit90652f512e9621e0dfac497439c7c80bf113d9d5 (patch)
treecff62ca951edd2f59b8a9970e534b05a78c9d1f5 /CollisionContext.cpp
parente8601b35b601b0ee1486dfaa12385e71b7f2b300 (diff)
implement quadtree paritioning
Diffstat (limited to 'CollisionContext.cpp')
-rw-r--r--CollisionContext.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/CollisionContext.cpp b/CollisionContext.cpp
index 648b889..e7550e5 100644
--- a/CollisionContext.cpp
+++ b/CollisionContext.cpp
@@ -12,12 +12,6 @@ shared_ptr<QuadTree> CollisionContext::get_quadtree() {
}
void CollisionContext::update() {
- this->quadtree = std::make_shared<QuadTree>();
- this->quadtree->boundary = {
- .x = 0.0,
- .y = 0.0,
- .width = static_cast<float>(this->museum.canvas.data.columns),
- .height = static_cast<float>(this->museum.canvas.data.rows),
- };
+ this->quadtree = std::make_shared<QuadTree>(this->museum);
}