OpenVR: adjusted translation of UI sphere overlay

This commit is contained in:
Anthony Thibault 2016-03-10 09:45:47 -08:00
parent 42d27557a1
commit 153f7fc3aa

View file

@ -78,7 +78,7 @@ void OpenVrDisplayPlugin::activate() {
float 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));
} else {
qDebug() << "OpenVR: error could not get chaperone pointer";