Box3D 0.1.0
A 3D physics engine for games
Loading...
Searching...
No Matches
b3TreeNode Struct Reference

A node in the dynamic tree. More...

#include <types.h>

Collaboration diagram for b3TreeNode:

Data Fields

b3AABB aabb
 The node bounding box.
uint64_t categoryBits
 Category bits for collision filtering.
union { 
b3TreeNodeChildren children
 Children (internal node).
uint64_t userData
 User data (leaf node).
}; 
union { 
int parent
 The node parent index (allocated node).
int next
 The node freelist next index (free node).
}; 
uint16_t height
 Height of the node. Leaves have a height of 0.
uint16_t flags

Detailed Description

A node in the dynamic tree.

This is private data placed here for performance reasons. todo test padding to 64 bytes to avoid straddling cache lines

Field Documentation

◆ flags

uint16_t b3TreeNode::flags
See also
b3TreeNodeFlags

The documentation for this struct was generated from the following file:
  • E:/box/box3d/include/box3d/types.h