How to create a mesh shape for a wall with a gap?

Post Reply
BigHatLogan
Posts: 7
Joined: Mon Sep 02, 2013 4:15 am

How to create a mesh shape for a wall with a gap?

Post by BigHatLogan »

Hello,

I am wondering how to create a mesh shape for this mesh: http://tinypic.com/view.php?pic=13zmtye&s=5 Image

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);   
Thanks
Post Reply