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)
Please login to continue.