Class: QuadPartitioning

QuadPartitioning

QuadPartitioning forms a base class for spatial partitioning. Scene components such as MeshInstance, PointLightComponent, etc. Are placed in here to accelerate collection.


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.

Author:
  • derschmale <http://www.derschmale.com>

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.