You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to isg...@googlegroups.com
Okay, I found this thread, where bullet physics bodies are created along the vertices of a model exported from blender using POD importer. But they use btConvexHullShape to create the rigid body, which may not work in my case because my requirement has irregular complex models.
So I was trying to create a btTriangleMesh along the vertices of my model, so that I can create a btBvhTriangleMeshShape to create my rigid body.
So for starters I exported a cube (default blender cube, placed at origin) to understand how the vertices are stored in the Isgl3dMeshNode structure. This is my code
I am not sure I understand how this indices (and the vertices it points to) constitute 12 triangles (two in each phase) in the cube. I expect indices to be something like this (given below)
Probably I am missing something obvious. But I am stuck on this for sometime. How we can use indices to constitute a triangle mesh, so that I can create a physics body along the lines of that.
An additional question, Has anyone has an example code that creates triangle mesh to create physics rigid body.