Quadtree collapsing
- by Caius Eugene
Okay so i've spent a few days learning what a quadtree is and how to implement one. So far I have a quadtree that when I click inside a leaf it subdivides, I wondering how do I get the previous subdivisions to collapse back up, so that only one area is subdivided at a time?
This is what mine looks like: (1. initial mouse click) (2. another mouse…