I'm having an issue where I'm using bullet Narrow Phase collision detection on two btCompoundShape objects that were created using Bullet Convex Decomposition. Because bullet convex decomposition seems to be very liberal about how many convex hull's it creates, I'm having an issue where these objects are colliding and creating a ton of unnecessary contact points at their edges.
Basically, I have two btCompoundShapes defined as obj0Wrap and obj1Wrap, and my code looks like the following:
Code: Select all
algo = dispatcher->findAlgorithm(&obj0Wrap, &obj1Wrap);
btManifoldResult contactPointResult(&obj0Wrap, &obj1Wrap);
bulletNPAlgorithm->processCollision(&obj0Wrap, &obj1Wrap, getPrimitive(0)->getWorld()->getBulletCollisionWorld()->getDispatchInfo(), &contactPointResult);
btManifoldArray manifoldArray;
bulletNPAlgorithm->getAllContactManifolds(manifoldArray);
Is there no built-in bullet method to prevent btCompoundShapes ConvexChildren from interacting with each other in such a manner? Are there any well known ways of dealing with filtering contact points?
Many thanks,
Khan