ReactPhysics3D: reactphysics3d::TreeNode Struct Reference

| ReactPhysics3D v0.10.2 C++ Physics engine library

Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
reactphysics3d::TreeNode Struct Reference

This structure represents a node of the dynamic AABB tree. More...

`#include <include/reactphysics3d/collision/broadphase/DynamicAABBTree.h>`

## Public Member Functions
| TreeNode ()
| Constructor.
bool | isLeaf () const
| Return true if the node is a leaf of the tree.

## Public Attributes
union { |
int32 parentID |
| Parent node ID.
int32 nextNodeID |
| Next allocated node ID.
}; |  |
union { |
int32 children [2] |
| Left and right child of the node (children[0] = left child)
union { |
uint32 dataInt |
void * dataPointer |
} |  |
| Two pieces of data stored at that node (in case the node is a leaf)
}; |  |
int16 | height
| Height of the node in the tree.
AABB | aabb
| Fat axis aligned bounding box (AABB) corresponding to the node.

## Static Public Attributes
static const int32 | NULL_TREE_NODE = -1
| Null tree node constant.

## Detailed Description

This structure represents a node of the dynamic AABB tree.

The documentation for this struct was generated from the following files:

- include/reactphysics3d/collision/broadphase/DynamicAABBTree.h
- src/collision/broadphase/DynamicAABBTree.cpp