working version on Mac OSX (no compound, but concave/convex)

This commit is contained in:
Erwin Coumans
2013-03-21 17:54:14 -07:00
parent 12700a7cd4
commit e698b1e22b
5 changed files with 9 additions and 6 deletions

View File

@@ -193,7 +193,9 @@ void ConcaveScene::setupScene(const ConstructionInfo& ci)
btAlignedObjectArray<btVector3> verts;
for (int i=0;i<shape->m_numvertices;i++)
{
btVector3 vtx = (btVector3&)shape->m_vertices->at(i).xyzw;
btVector3 vtx(shape->m_vertices->at(i).xyzw[0],
shape->m_vertices->at(i).xyzw[1],
shape->m_vertices->at(i).xyzw[2]);
verts.push_back(vtx*scaling);
}