QuadtreeParams
Defined in: sdk/src/terrain/quadtree.ts:25
What the tree is cut by.
Properties
Section titled “Properties”bounds
Section titled “bounds”bounds: readonly [
number,number,number,number] |null
Defined in: sdk/src/terrain/quadtree.ts:33
The area to draw, [minX, minZ, maxX, maxZ]; null draws the top level’s nodes round the eye out to its range (an infinite ground).
leafSize
Section titled “leafSize”leafSize:
number
Defined in: sdk/src/terrain/quadtree.ts:27
The side of a level-0 node, in world units.
levels
Section titled “levels”levels:
number
Defined in: sdk/src/terrain/quadtree.ts:29
How many levels there are: the top one’s nodes are leafSize * 2^(levels - 1) across.
maxHeight
Section titled “maxHeight”maxHeight:
number
Defined in: sdk/src/terrain/quadtree.ts:36
minHeight
Section titled “minHeight”minHeight:
number
Defined in: sdk/src/terrain/quadtree.ts:35
The least and most height the ground has: the vertical extent every node’s box is measured with.
range0
Section titled “range0”range0:
number
Defined in: sdk/src/terrain/quadtree.ts:31
The distance within which level 0 is drawn; each level’s is twice the one below’s.