From 05cb0b830c004ed8623fefc8f1ada06add03ccf5 Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Tue, 31 Mar 2015 16:59:43 -0700 Subject: [PATCH] make max collision size be 1000x1000x1000 rather than 100x100x100 --- libraries/physics/src/ShapeManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/physics/src/ShapeManager.cpp b/libraries/physics/src/ShapeManager.cpp index b4d322a4a3..1dd4b981d8 100644 --- a/libraries/physics/src/ShapeManager.cpp +++ b/libraries/physics/src/ShapeManager.cpp @@ -35,7 +35,7 @@ btCollisionShape* ShapeManager::getShape(const ShapeInfo& info) { // Very small or large objects are not supported. float diagonal = 4.0f * glm::length2(info.getHalfExtents()); const float MIN_SHAPE_DIAGONAL_SQUARED = 3.0e-4f; // 1 cm cube - const float MAX_SHAPE_DIAGONAL_SQUARED = 3.0e4f; // 100 m cube + const float MAX_SHAPE_DIAGONAL_SQUARED = 3.0e6f; // 100 m cube if (diagonal < MIN_SHAPE_DIAGONAL_SQUARED || diagonal > MAX_SHAPE_DIAGONAL_SQUARED) { // qDebug() << "ShapeManager::getShape -- not making shape due to size" << diagonal; return NULL;