CharacterController: removed unnecessary code.

This commit is contained in:
Anthony J. Thibault 2016-02-05 10:53:58 -08:00
parent bfeace78f7
commit f13e31c7fc

View file

@ -483,7 +483,6 @@ void CharacterController::preSimulation() {
SET_STATE(State::Hover, "no ground");
} else if ((now - _takeoffToInAirStartTime) > TAKE_OFF_TO_IN_AIR_PERIOD) {
SET_STATE(State::InAir, "takeoff done");
_takeoffToInAirStartTime = now + USECS_PER_SECOND * 86500.0f;
velocity += _jumpSpeed * _currentUp;
_rigidBody->setLinearVelocity(velocity);
}