minor update to benchmark: use scaling for btConvexHullShape, to make sure that feature is tested.

http://bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2811
This commit is contained in:
erwin.coumans 2008-11-06 23:35:39 +00:00
parent 9b5df088de
commit c1fc609d74
2 changed files with 7 additions and 3 deletions

View File

@ -878,10 +878,14 @@ void BenchmarkDemo::createTest4()
btConvexHullShape* convexHullShape = new btConvexHullShape();
btScalar scaling(1);
convexHullShape->setLocalScaling(btVector3(scaling,scaling,scaling));
for (int i=0;i<TaruVtxCount;i++)
{
btVector3 vtx(TaruVtx[i*3],TaruVtx[i*3+1],TaruVtx[i*3+2]);
convexHullShape->addPoint(vtx);
convexHullShape->addPoint(vtx*(1./scaling));
}
btTransform trans;

View File

@ -27,9 +27,9 @@ int main(int argc,char** argv)
GLDebugDrawer gDebugDrawer;
// BenchmarkDemo1 benchmarkDemo;
BenchmarkDemo2 benchmarkDemo;
// BenchmarkDemo2 benchmarkDemo;
// BenchmarkDemo3 benchmarkDemo;
// BenchmarkDemo4 benchmarkDemo;
BenchmarkDemo4 benchmarkDemo;
// BenchmarkDemo5 benchmarkDemo;
// BenchmarkDemo6 benchmarkDemo;
// BenchmarkDemo7 benchmarkDemo;