Function

makeQuadtree

(pos: Vec2, width: number, height: number, maxObjects: number, maxLevels: number): Quadtree

Make a new quadtree

param pos- The position of the top level node

param width- The width of the top level node

param height- The height of the top level node

param maxObjects- The maximum amount of objects per node before splitting

param maxLevels- The maximum amount of levels

kaplay logo

Components

Miscalenous