mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
make max collision size be 1000x1000x1000 rather than 100x100x100
This commit is contained in:
parent
bacd6445f2
commit
05cb0b830c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue