A simple example of how you can use quadtrees to speed up simulations.
Dylan J. Raub
A simple example of how you can use quadtrees to speed up simulations. Quadtrees can be use for more then just collision detection, even though that's it's primary use. It can be used for rendering, compressing, sorting, and more.
Pygame.org account Comments
Annon 2012-09-26 18:11
there is an error
line 239, in render
self.world.rects.append(pygame.draw.circle(self.world.screen, c, self.pos, self.radius))
TypeError: integer argument expected, got float