Configure a Layer of the quadtree
As the quadtree is broken up into Layers, this means you can configure each Layer to have a specific number of maximum levels
and objects per node. This helps you to be more specific about how you optimise your quadtree. You should configure the Layers immediately
after creating the quadtree and before anything is added to the tree. Layers can not be reconfigured once the quadtree has had objects added
to it.
Parameters
Layer
The layer index to configure
maxpernode
The number of objects placed into a quad before it's subdivived
maxlayers
The number of layers in the quadtree- useful for organsing your game objects