refit tree needs an aabbMin/aabbMax
improved unquantization for quantized trees reverted heightfield quantize
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user