I'm sorry for this noob question, but I can't find a way to get the vertices and indices of a body created with btBvhTriangleMeshShape.
For the moment, I'm passing directly my vertices to the renderer basic OpenGL), but it doesn't seem elegant...
Is the a way to
Code: Select all
btBvhTriangleMeshShape *_mesh = (btBvhTriangleMeshShape *)body->getCollisionShape();
_mesh->getVertices();
Thank you !