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

A mesh BVH node. More...

#include <types.h>

Collaboration diagram for b3MeshNode:

Data Fields

b3Vec3 lowerBound
 The lower bound of the node AABB. Strategic placement for SIMD.
union { 
   struct { 
uint32_t axis: 2
 Split axis. 0, 1, or 2.
uint32_t childOffset: 30
 Offset of the second child node.
   } asNode
 Internal node.
   struct { 
uint32_t type: 2
 Aligned with axis above and has value of 3 if this is a leaf.
uint32_t triangleCount: 30
 The number of triangles for this leaf node.
   } asLeaf
 Leaf node.
data
 Anonymous union.
b3Vec3 upperBound
 The upper bound of the node AABB. Strategic placement for SIMD.
uint32_t triangleOffset
 The index of the leaf triangles.

Detailed Description

A mesh BVH node.


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