fixing edge case

This commit is contained in:
Dante Ruiz 2018-07-06 11:09:59 -07:00
parent 3cc54c5118
commit fdf58ab2b5

View file

@ -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;
}