refit tree needs an aabbMin/aabbMax

improved unquantization for quantized trees
reverted heightfield quantize
This commit is contained in:
ejcoumans
2008-02-28 02:55:25 +00:00
parent 94586390b6
commit 3d3d24afa9
9 changed files with 118 additions and 35 deletions

View File

@@ -400,7 +400,10 @@ void ConcaveConvexcastDemo::clientMoveAndDisplay()
setVertexPositions(waveheight,offset);
trimeshShape->refitTree();
btVector3 worldMin(-1000,-1000,-1000);
btVector3 worldMax(1000,1000,1000);
trimeshShape->refitTree(worldMin,worldMax);
//clear all contact points involving mesh proxy. Note: this is a slow/unoptimized operation.
m_dynamicsWorld->getBroadphase()->getOverlappingPairCache()->cleanProxyFromPairs(staticBody->getBroadphaseHandle(),getDynamicsWorld()->getDispatcher());