Code: Select all
btConvexHullShape* shape = new btConvexHullShape;
shape->addPoint(btVector3(-1,-1,0));
shape->addPoint(btVector3( 1,-1,0));
shape->addPoint(btVector3( 1, 1,0));
shape->addPoint(btVector3(-1, 1,0));
shape->addPoint(btVector3( 0, 0,1));
Are convex hulls supported for static geometry? If not, why didn't this crash, and what should I use instead for such a simple primitive? If it is supported, why isn't this working and what should I be doing?