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)
doc_phaser
2017-02-14 11:06:37
Comments
Leave a Comment

Please login to continue.