mirror of
https://github.com/bulletphysics/bullet3
synced 2025-01-11 01:40:10 +00:00
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:
parent
9b5df088de
commit
c1fc609d74
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user