Polygon#type

type : number The base object type. Source code: geom/Polygon.js (Line 55)

QuadTree#bounds

bounds : Object Object that contains the quadtree bounds. Source code: math/QuadTree.js (Line 45)

QuadTree#clear()

clear() Clear the quadtree. Source code: math/QuadTree.js (Line 295)

QuadTree#getIndex()

getIndex(rect) → {number} Determine which node the object belongs to. Parameters Name Type Description rect Phaser.Rectangle | object The bounds in which to check. Returns number - index - Index of the subnode (0-3), or -1 if rect cannot completely fit within a subnode and is part of the parent node. Source code: math/QuadTree.js (Line 203)

QuadTree#insert()

insert(body) Insert the object into the node. If the node exceeds the capacity, it will split and add all objects to their corresponding subnodes. Parameters Name Type Description body Phaser.Physics.Arcade.Body | object The Body object to insert into the quadtree. Can be any object so long as it exposes x, y, right and bottom properties. Source code: math/QuadTree.js (Line 151)

QuadTree#level

level : number The current level. Source code: math/QuadTree.js (Line 40)

QuadTree#maxLevels

maxLevels : number The maximum number of levels to break down to. Default Value 4 Source code: math/QuadTree.js (Line 35)

QuadTree#maxObjects

maxObjects : number The maximum number of objects per node. Default Value 10 Source code: math/QuadTree.js (Line 29)

QuadTree#nodes

nodes :array Array of associated child nodes. Source code: math/QuadTree.js (Line 55)

QuadTree#objects

objects :array Array of quadtree children. Source code: math/QuadTree.js (Line 50)