MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / testBoxBoxAxis

Function testBoxBoxAxis

deps/physx/physx/source/geomutils/src/GuMTD.cpp:445–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443}
444
445static PX_FORCE_INLINE bool testBoxBoxAxis(PxVec3& mtd, PxF32& depth, const PxVec3& axis, const Box& box0, const Box& box1)
446{
447 PxF32 d;
448 if(!PxcTestAxis(axis, box0, box1, d))
449 return false;
450 if(d<depth)
451 {
452 depth = d;
453 mtd = axis;
454 }
455 return true;
456}
457
458static bool computeMTD_BoxBox(PxVec3& _mtd, PxF32& _depth, const Box& box0, const Box& box1)
459{

Callers 1

computeMTD_BoxBoxFunction · 0.85

Calls 1

PxcTestAxisFunction · 0.70

Tested by

no test coverage detected