| Parameters | |
|---|---|
x |
Position of the quadtree (top left corner) |
y |
Position of the quadtree (top left corner) |
w |
Width of the quadtree |
h |
Height of the quadtree |
maxlevels |
This is how many times the quadtree can be subdivided, default = 4 |
maxpernode |
The number of objects placed into a quad before it's subdivived, default = 4 |
maxlayers |
The number of layers in the quadtree- useful for organsing your game objects, default = 8 |