Table of Contents

Struct b3DynamicTree

Namespace
Box3D.Native
Assembly
Box3D.NET.Native.dll

A dynamic bounding volume hierarchy over axis-aligned boxes. Mirror of b3DynamicTree.

public struct b3DynamicTree

Inherited Members

Remarks

Box3D uses this internally for the broad phase, and exposes it because it is useful for organizing other spatial game data. It is private data placed in the public header for performance.

A tree returned by b3DynamicTree_Create owns heap memory and must be released with b3DynamicTree_Destroy.

Fields

binIndices

Scratch storage: sort bins used during a rebuild.

freeList

The head of the node free list.

leafBoxes

Scratch storage: leaf bounding boxes used during a rebuild.

leafCenters

Scratch storage: leaf box centres used during a rebuild.

leafIndices

Scratch storage: leaf indices used during a rebuild.

nodeCapacity

The number of nodes allocated.

nodeCount

The number of nodes in use.

nodes

The node pool.

proxyCount

The number of proxies created.

rebuildCapacity

The capacity of the rebuild scratch storage.

root

The index of the root node.

version

The format version. Always the first field, so a serialized tree can be validated. Must equal Box3D.Native.Constants.B3_DYNAMIC_TREE_VERSION.