Currently I can get the nodes that are contacting on the soft body, but I don't have much info about the rigid body contact points.
Code: Select all
psb->m_rcontacts[i]
Code: Select all
psb->m_rcontacts[i]
Hmm, my rigid body is a triangle mesh, but I wasn't having any luck getting a manifold from my dispatcher. Am I doing something wrong or do soft bodies create manifolds like rigid bodies?dphil wrote:Perhaps some of the difficulty you are having is because some bodies don't have the same kind of notion of vertices/faces as a typical mesh. A btSphereShape, for example, is an implicit representation, I think, so it doesn't use actual vertices or faces. If you are using a triangle-based rigid body such as a btGImpactMeshShape or btBvhTriangleMeshShape, then maybe this thread could help: http://bulletphysics.org/Bullet/phpBB3/ ... act#p22638
Code: Select all
rayResult.m_localShapeInfo->m_triangleIndex