fix convex-plane for > 4 vertices

improve compound demo
This commit is contained in:
erwin coumans
2013-04-10 00:03:02 -07:00
parent e1a4400037
commit 467a68293b
9 changed files with 3988 additions and 30 deletions

View File

@@ -353,12 +353,11 @@ void ConcaveCompoundScene::createDynamicObjects(const ConstructionInfo& ci)
int childColIndex = m_data->m_np->registerConvexHullShape(&cube_vertices[0],strideInBytes,numVertices, scaling);
btVector3 childPositions[3] = {
btVector3 childPositions[3] = {
btVector3(0,-2,0),
btVector3(0,0,0),
btVector3(0,2,0)
btVector3(0,0,2)
};
btAlignedObjectArray<btGpuChildShape> childShapes;
int numChildShapes = 3;