From fdf58ab2b5467f09eaf99e12dbecb0350b171905 Mon Sep 17 00:00:00 2001 From: Dante Ruiz Date: Fri, 6 Jul 2018 11:09:59 -0700 Subject: [PATCH] fixing edge case --- libraries/physics/src/CharacterController.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/physics/src/CharacterController.cpp b/libraries/physics/src/CharacterController.cpp index 024ff6f0f4..40b21dc187 100755 --- a/libraries/physics/src/CharacterController.cpp +++ b/libraries/physics/src/CharacterController.cpp @@ -757,6 +757,8 @@ void CharacterController::updateState() { // Transition to hover if we are above the fall threshold SET_STATE(State::Hover, "above fall threshold"); } + } else if (!rayHasHit && !_hasSupport) { + SET_STATE(State::Hover, "no ground detected"); } break; }