Improved performance of convex collision shapes, cache local AABB instead of recomputation. This fixes issue with very slow performance in larger .bsp levels.
Moved some asserts into 'btFullAssert', which is disabled by default (see btScalar.h to enable them). This is to speed-up debugging.
This commit is contained in:
@@ -100,7 +100,9 @@ void UserCollisionAlgorithm::initPhysics()
|
||||
|
||||
delete[] gVertices;
|
||||
|
||||
btCollisionShape* trimeshShape = new btBvhTriangleMeshShape(trimesh);
|
||||
bool useQuantizedBvhTree = false;
|
||||
// btTriangleMesh uses a subpart for each triangle, this is not compatible with compressed quantized bvh node
|
||||
btCollisionShape* trimeshShape = new btBvhTriangleMeshShape(trimesh,useQuantizedBvhTree);
|
||||
|
||||
//ConstraintSolver* solver = new btSequentialImpulseConstraintSolver;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user