-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overlap between convex core and capsule doesn't work #355
Comments
Hi @thfProjects |
Hi @vreutskyy, static void overlapTest(PxPhysics* physics, PxScene* scene, PxMaterial* material) {
PxCapsuleGeometry capsuleGeometry = PxCapsuleGeometry(1, 1);
PxConvexCoreGeometry cylinderGeometry = PxConvexCoreGeometry(PxConvexCoreCylinder(1, 1));
PxActor* capsuleActor = PxCreateKinematic(*physics, PxTransform(PxIdentity), capsuleGeometry, *material, 1);
PxActor* cylinderActor = PxCreateKinematic(*physics, PxTransform(PxIdentity), cylinderGeometry, *material, 1);
scene->addActor(*capsuleActor);
scene->addActor(*cylinderActor);
int maxOverlaps = 1;
std::vector<PxOverlapHit> hitBuffer(maxOverlaps);
PxOverlapBuffer hit(hitBuffer.data(), maxOverlaps);
if (!scene->overlap(cylinderGeometry, PxTransform(PxIdentity), hit)) {
printf("No overlaps detected");
} else {
printf("Overlaps detected");
}
} |
Thanks!
|
Tried it, it makes no difference. |
Aa. I didn't realize you're trying to use convex core as a overlap geometry. It's not supported yet.
|
Ahh OK. My bad, it didn't occur to me to check if it was supported. |
Thanks for finding it. I might forget about that ;) |
PhysX 5.5.0
Windows 11
Steps to Trigger Behavior
Expected Behavior
Detect overlap
Actual Behavior
No overlap detected, additionally, PxCustomGeometry with cylinder callbacks would sometimes make the application not respond if it overlaps another shape, but I am unable to find out exactly how to reproduce it
The text was updated successfully, but these errors were encountered: