Skip to content

cf_aabb3_to_b3

Category: physics
GitHub: cute_physics.h


Converts a CF_Aabb3 to a b3AABB (bit-identical).

b3AABB cf_aabb3_to_b3(CF_Aabb3 bb) { b3AABB out; out.lowerBound = cf_v3_to_b3(bb.min); out.upperBound = cf_v3_to_b3(bb.max); return out; }

Remarks

Box3D has no AABB shape; box colliders come from b3MakeBoxHull. This converts the bounds type used by queries like b3World_OverlapAABB.

cf_b3_to_aabb3
cf_sphere_to_b3
cf_capsule3_to_b3