Closed gabrielecaddeo closed 2 years ago
You don't need these two lines:
PxGeometry box0_geom(box0);
PxGeometry box1_geom(box1);
Just pass box0 and box1 directly to the computePenetration function instead.
Thank you very much @PierreTerdiman , issue solved.
Hi, I would like to use the API to detect compenetration between objects. I am starting by using the
PxGeometryQuery::computePenetration
with two boxes that are compenetrating, according to their poses (pose0
andpose1
).Unfortunately, the method
PxGeometryQuery::computePenetration
is returning 0 (i.e. no compenetration) while I was expecting the opposite. I am attaching the code below.Is there something wrong that I am doing or am I missing something?