Skip to main content

Module broadphase_bvh

Module broadphase_bvh 

Expand description

Zero-Heap Dynamic Broadphase BVH with Fat-AABB Hysteresis (broadphase_bvh.rs).

Implements a deterministic, zero-heap bounding volume hierarchy BroadphaseBvh for up to MAX_LEAVES 3D colliders:

  • Uses fat-AABB margin hysteresis (fat_margin) so micro-oscillations or small displacements do not trigger redundant tree refits.
  • Provides zero-heap candidate collection for overlap_aabb, raycasts, and swept shape casts.
  • Interoperates with etalon_render::spatial_math::physics::Aabb via Aabb3D::to_spatial_aabb and Aabb3D::from_spatial_aabb.

Structsยง

Aabb3D
3D Axis-Aligned Bounding Box ([min_x, min_y, min_z] .. [max_x, max_y, max_z]).
BroadphaseBvh
Zero-heap dynamic broadphase BVH with fat-AABB hysteresis.
BvhLeafEntry
Leaf entry in BroadphaseBvh.