diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-21 17:41:38 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-21 17:41:38 +0200 |
commit | 90652f512e9621e0dfac497439c7c80bf113d9d5 (patch) | |
tree | cff62ca951edd2f59b8a9970e534b05a78c9d1f5 /CollisionContext.cpp | |
parent | e8601b35b601b0ee1486dfaa12385e71b7f2b300 (diff) |
implement quadtree paritioning
Diffstat (limited to 'CollisionContext.cpp')
-rw-r--r-- | CollisionContext.cpp | 8 |
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); } |