I’m testing overlap scene query function, I have cubic of size 1 at (0,0,0). I try overlap function with 2 position differently (0.0,0.2,0.0) (expect to overlap) , (0.0,10.0,0.0)(not expect to overlap). However, both of the test result the same. Is this known bug? or I am doing something wrong. Please give me advices.
Your help in this matter is highly appreciated
PxOverlapBuffer hit;
PxGeometry overlapshape = PxBoxGeometry(0.5, 0.5, 0.5);
PxTransform shapePose = PxTransform(PxVec3(0.0, 0.2, 0.0));
PxQueryFilterData fd;
fd.flags |= PxQueryFlag::eANY_HIT;
bool status = gScene->overlap(overlapshape, shapePose, hit,fd);
cout << "1. status: " << status << endl;
cout << "nbAnyHits " << hit.getNbAnyHits() << endl;
cout << "hit block: " << hit.hasBlock << endl;
PxTransform shapePose = PxTransform(PxVec3(0.0, 10.0, 0.0));
bool status = gScene->overlap(overlapshape, shapePose, hit, fd);
cout << "2. status: " << status << endl;
cout << "nbAnyHits: " << hit.getNbAnyHits() << endl;
cout << "hit block: " << hit.hasBlock << endl;
Result :
1. status: 1
nbAnyhits 1
hit block: 1
2. status: 1
nbAnyhits 1
hit block: 1