I am experiencing a problem that colliding with certain btConvexHullShapes does not trigger a contact.
The famous suzanne and teapot objects work when using below method. When using a plane with a hole inside it does not work. If that cannot work please let me know. What I want to achieve is flying a spaceship through a hole in a plane and detecting whether it has collided with the edges of the hole in the plane.
Thanks!
Rupert
I am using the following code:
Code: Select all
btConvexHullShape* shape = new btConvexHullShape();
//btVector3 v;
for (int i = 0; i < m_Entries[0].vertices.size(); i++) {
btVector3 v(m_Entries[0].vertices[i].x, m_Entries[0].vertices[i].y, m_Entries[0].vertices[i].z);
shape->addPoint(v);
}
shape->optimizeConvexHull();
shape->initializePolyhedralFeatures();