PxFindOverlap

Defined in include/geometry/PxBVH.h

bool PxFindOverlap(PxReportCallback<PxGeomIndexPair> &callback, const PxBVH &bvh0, const PxBVH &bvh1)

BVH-vs-BVH overlap test.

This function returns pairs of box indices that belong to both the first & second input bvhs.

Parameters
  • callback[in] The callback object used to report results

  • bvh0[in] First bvh

  • bvh1[in] Second bvh

Returns

true if an overlap has been detected