MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / testBoxBoxAxis

Function testBoxBoxAxis

physx/source/geomutils/src/GuMTD.cpp:444–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

computeMTD_BoxBoxFunction · 0.85

Calls 1

PxcTestAxisFunction · 0.70

Tested by

no test coverage detected