mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 18:13:05 +02:00
some more fixes
This commit is contained in:
parent
09627dd3d9
commit
533164e1e4
2 changed files with 1 additions and 4 deletions
|
@ -715,7 +715,7 @@ void MyAvatar::simulate(float deltaTime) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
bool isPhysicsEnabled = qApp->isPhysicsEnabled();
|
bool isPhysicsEnabled = qApp->isPhysicsEnabled();
|
||||||
_characterController.setFlyingAllowed(zoneAllowsFlying && (_enableFlying || !isPhysicsEnabled));
|
_characterController.setFlyingAllowed((zoneAllowsFlying && _enableFlying) || !isPhysicsEnabled);
|
||||||
_characterController.setCollisionlessAllowed(collisionlessAllowed);
|
_characterController.setCollisionlessAllowed(collisionlessAllowed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -826,9 +826,6 @@ bool CharacterController::getRigidBodyLocation(glm::vec3& avatarRigidBodyPositio
|
||||||
void CharacterController::setFlyingAllowed(bool value) {
|
void CharacterController::setFlyingAllowed(bool value) {
|
||||||
if (value != _flyingAllowed) {
|
if (value != _flyingAllowed) {
|
||||||
_flyingAllowed = value;
|
_flyingAllowed = value;
|
||||||
if (!_flyingAllowed && _state == State::Hover) {
|
|
||||||
SET_STATE(State::InAir, "flying not allowed");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue