I'm trying to load a map into jbullet, but i can't wrap my head around creating bvhtrianglemeshshapes with a triangleindexvertexarray
The concave demo uses the code
int vertStride = 3 * 4;
int indexStride = 3 * 4;
indexVertexArrays = new TriangleIndexVertexArray(totalTriangles,
totalVerts, gVertices, vertStride);
what are the stride parameters, and why are they set to 12? you would think it would be set to 0 if the indices and vertices aren't interleaved (I can't see how they would be).
The jbullet javadoc and bullet Doxygen docs weren't any help either.
Could someone walk me through how to get these shapes loaded?