mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 07:23:00 +02:00
fixing limit for overlay too far/close
This commit is contained in:
parent
9fd1b7fb2d
commit
7ab1d649f1
1 changed files with 1 additions and 1 deletions
|
@ -8687,7 +8687,7 @@ void Application::updateLoginDialogOverlayPosition() {
|
||||||
auto newOverlayPositionVec = (cameraPositionVec + offset) + (upVec * -0.1f);
|
auto newOverlayPositionVec = (cameraPositionVec + offset) + (upVec * -0.1f);
|
||||||
auto newOverlayOrientation = glm::inverse(glm::quat_cast(glm::lookAt(newOverlayPositionVec, cameraPositionVec, upVec))) * Quaternions::Y_180;
|
auto newOverlayOrientation = glm::inverse(glm::quat_cast(glm::lookAt(newOverlayPositionVec, cameraPositionVec, upVec))) * Quaternions::Y_180;
|
||||||
|
|
||||||
bool overlayOutOfBounds = glm::distance(overlayPositionVec, cameraPositionVec) > 0.5f;
|
bool overlayOutOfBounds = glm::distance(overlayPositionVec, cameraPositionVec) > 1.0f;
|
||||||
|
|
||||||
if (pointAngle > LOOK_AWAY_THRESHOLD_ANGLE || overlayOutOfBounds) {
|
if (pointAngle > LOOK_AWAY_THRESHOLD_ANGLE || overlayOutOfBounds) {
|
||||||
QVariantMap properties {
|
QVariantMap properties {
|
||||||
|
|
Loading…
Reference in a new issue