ReadonlybufferBuffer storing the tree data
Readonlyf32Float32 view of the buffer
Readonlyi32Int32 view of the buffer
ReadonlyisCopies the allocated part into a dedicated shared buffer and resolves leaf objects to stable identifiers. Mutating the returned buffer cannot mutate the live scene tree.
Read a single node by slot index. Thin wrapper around the standalone readNodeFromBuffer.
Write a node back into the buffer at the given slot index. Thin wrapper around the standalone writeNodeToBuffer.
Flat-buffer bounding-volume hierarchy over raycastable scene objects, used for picking and proximity queries (raycast, intersectPoint). It is not updated automatically: moving or resizing an item requires calling updateItem, or the tree keeps stale bounds while the object renders at its new place.