bounds : Object Object that contains the quadtree bounds. Source code:
retrieve(source) → {array} Return all objects that could collide with the given Sprite or Rectangle
reset(x, y, width, height, maxObjects, maxLevels, level)
getIndex(rect) → {number} Determine which node the object belongs to. Parameters
level : number The current level. Source code:
new QuadTree(x, y, width, height, maxObjects, maxLevels, level)
maxLevels : number The maximum number of levels to break down to. Default
objects :array Array of quadtree children. Source code:
maxObjects : number The maximum number of objects per node. Default Value
split() Split the node into 4 subnodes Source code:
Page 1 of 2