I have a simulation with some small concave meshes and a ground object. The ground is realized as a btBvhTriangleMeshShape, the other concave meshes are from type btGImpactMeshShape.
If I run the simulation, the objects fall down on the ground mesh and collide with it. But the most objects don't stop to move. They make very small movements and they don't collide with the other moving objects, only with the ground object. I tested some different properties, but haven't find the solution yet. Do you know, what's wrong here?
Here is my code:
m_pCollisionConfiguration = new btDefaultCollisionConfiguration();
m_pDispatcher = new btCollisionDispatcher(m_pCollisionConfiguration);
m_pOverlappingPairCache = new btSimpleBroadphase();
m_pSolver = new btSequentialImpulseConstraintSolver;
m_pDynamicsWorld = new btDiscreteDynamicsWorld(m_pDispatcher,m_pOverlappingPairCache,m_pSolver,m_pCollisionConfiguration);
// then add the objects
m_indexVertexArrays = new btTriangleIndexVertexArray
btGImpactMeshShape* trimesh = new btGImpactMeshShape(m_indexVertexArrays);
btCollisionShape* collisionShape = trimesh;
bool isDynamic = (mass != 0.f);
float masse = mass;
btDefaultMotionState* myMotionState = new btDefaultMotionState(btTransform(btQuaternion(0,0,0,1),btVector3(gravityCenter, gravityCenter, gravityCenter)));
btRigidBody::btRigidBodyConstructionInfo rbInfo(mass, myMotionState, collisionShape, localInertia);
body = new btRigidBody(rbInfo);
I hope, you can help me.