Small World Engine API Reference - v0.78.00
    Preparing search index...

    Class OctreeNode

    A node in the octree.

    Index
    bounds: BoundingBox

    The bounds of this node.

    children: OctreeNode[] = []

    The children of this node.

    objects: Collidable[] = []

    The objects stored in this node.

    • Removes an object from this node or its children. Collapses child nodes back to the pool if remaining descendant objects <= maxObjects.

      Parameters

      Returns boolean

      True if the object was found and removed.