mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 07:17:43 +02:00
OpenVR: adjusted translation of UI sphere overlay
This commit is contained in:
parent
42d27557a1
commit
153f7fc3aa
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ void OpenVrDisplayPlugin::activate() {
|
||||||
|
|
||||||
float xSize, zSize;
|
float xSize, zSize;
|
||||||
chaperone->GetPlayAreaSize(&xSize, &zSize);
|
chaperone->GetPlayAreaSize(&xSize, &zSize);
|
||||||
glm::vec3 uiPos(0.0f, UI_HEIGHT, 0.5f * zSize - UI_RADIUS + UI_Z_OFFSET);
|
glm::vec3 uiPos(0.0f, UI_HEIGHT, UI_RADIUS - (0.5f * zSize) - UI_Z_OFFSET);
|
||||||
_sensorResetMat = glm::inverse(createMatFromQuatAndPos(glm::quat(), uiPos));
|
_sensorResetMat = glm::inverse(createMatFromQuatAndPos(glm::quat(), uiPos));
|
||||||
} else {
|
} else {
|
||||||
qDebug() << "OpenVR: error could not get chaperone pointer";
|
qDebug() << "OpenVR: error could not get chaperone pointer";
|
||||||
|
|
Loading…
Reference in a new issue