From cd7be46b70d11a72e2cd0fb4bc2aa6c2722170e8 Mon Sep 17 00:00:00 2001 From: Andrew Meadows Date: Mon, 1 May 2017 16:16:09 -0700 Subject: [PATCH] tweak threshold for minimum stepheight --- libraries/physics/src/CharacterController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/physics/src/CharacterController.cpp b/libraries/physics/src/CharacterController.cpp index 28fc28d2b6..bf1a6dbdba 100755 --- a/libraries/physics/src/CharacterController.cpp +++ b/libraries/physics/src/CharacterController.cpp @@ -363,7 +363,7 @@ void CharacterController::setLocalBoundingBox(const glm::vec3& minCorner, const if (glm::abs(radius - _radius) > FLT_EPSILON || glm::abs(halfHeight - _halfHeight) > FLT_EPSILON) { _radius = radius; _halfHeight = halfHeight; - const btScalar DEFAULT_MIN_STEP_HEIGHT = 0.041f; // HACK: hardcoded now but should just larger than shape margin + const btScalar DEFAULT_MIN_STEP_HEIGHT = 0.005f; const btScalar MAX_STEP_FRACTION_OF_HALF_HEIGHT = 0.56f; _minStepHeight = DEFAULT_MIN_STEP_HEIGHT; _maxStepHeight = MAX_STEP_FRACTION_OF_HALF_HEIGHT * (_halfHeight + _radius);