I am wondering how to create a mesh shape for this mesh: http://tinypic.com/view.php?pic=13zmtye&s=5
I have been creating meshes using btBvhTriangleMeshShape but this just creates a cube around the whole object and doesn't allow anything to go through the gap
This is how I've been creating meshes:
Code: Select all
pData->indexVertexArrays = new btTriangleIndexVertexArray(numFaces, &pData->indices[0], indexStride,
numVertices, &pData->vertices[0], vertStride);
bool useQuantizedAabbCompression = true;
btBvhTriangleMeshShape *shape = new btBvhTriangleMeshShape(pData->indexVertexArrays, true);