new QuadPartitioning(size, numLevels [, maxHeight])
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
size |
number | The size of the QuadTree. This should be about as big as the scene bounds' XY extents. |
|
numLevels |
number | The node depth of the quad tree. Higher values allows more precise frustum culling, but can introduce more overhead if there aren't many entities per node. |
|
maxHeight |
number |
<optional> |
The maximum height of the node, for culling purposes. |
Properties:
Name | Type | Description |
---|---|---|
minHeight |
number | The minimum height of the node, for culling purposes. |
maxHeight |
number | The maximum height of the node, for culling purposes. |
Members
-
maxHeight
-
The maximum height of the node
-
minHeight
-
The minimum height of the node
-
numLevels
-
The node depth of the quad tree.
-
size
-
The size of the QuadTree. This should be about as big as the scene bounds' XY extents.