mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-10 20:58:37 +02:00
CharacterController: removed unnecessary code.
This commit is contained in:
parent
bfeace78f7
commit
f13e31c7fc
1 changed files with 0 additions and 1 deletions
|
@ -483,7 +483,6 @@ void CharacterController::preSimulation() {
|
||||||
SET_STATE(State::Hover, "no ground");
|
SET_STATE(State::Hover, "no ground");
|
||||||
} else if ((now - _takeoffToInAirStartTime) > TAKE_OFF_TO_IN_AIR_PERIOD) {
|
} else if ((now - _takeoffToInAirStartTime) > TAKE_OFF_TO_IN_AIR_PERIOD) {
|
||||||
SET_STATE(State::InAir, "takeoff done");
|
SET_STATE(State::InAir, "takeoff done");
|
||||||
_takeoffToInAirStartTime = now + USECS_PER_SECOND * 86500.0f;
|
|
||||||
velocity += _jumpSpeed * _currentUp;
|
velocity += _jumpSpeed * _currentUp;
|
||||||
_rigidBody->setLinearVelocity(velocity);
|
_rigidBody->setLinearVelocity(velocity);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue