the physic world this QuadTree belongs to
bounds of the node
Optional
max_objects: number = 4max objects a node can hold before splitting into 4 subnodes
Optional
max_levels: number = 4total max levels inside root Quadtree
Optional
level: number = 0deepth level, required for subnodes
clear the quadtree
Optional
bounds: Boundsthe bounds to be cleared
Insert the given object container into the node.
group of objects to be added
a QuadTree implementation in JavaScript, a 2d spatial subdivision algorithm.
See
game.world.broadphase