quantization/compression is now allowed for btTriangleMesh containers and btBvhTriangleMeshShape
This commit is contained in:
@@ -100,8 +100,7 @@ void UserCollisionAlgorithm::initPhysics()
|
|||||||
|
|
||||||
delete[] gVertices;
|
delete[] gVertices;
|
||||||
|
|
||||||
bool useQuantizedBvhTree = false;
|
bool useQuantizedBvhTree = true;
|
||||||
// btTriangleMesh uses a subpart for each triangle, this is not compatible with compressed quantized bvh node
|
|
||||||
btCollisionShape* trimeshShape = new btBvhTriangleMeshShape(trimesh,useQuantizedBvhTree);
|
btCollisionShape* trimeshShape = new btBvhTriangleMeshShape(trimesh,useQuantizedBvhTree);
|
||||||
|
|
||||||
//ConstraintSolver* solver = new btSequentialImpulseConstraintSolver;
|
//ConstraintSolver* solver = new btSequentialImpulseConstraintSolver;
|
||||||
|
|||||||
Reference in New Issue
Block a user