mirror of
https://github.com/overte-org/overte.git
synced 2025-04-10 19:29:07 +02:00
made requested changes
This commit is contained in:
parent
27a9880eff
commit
e567cf0196
1 changed files with 4 additions and 1 deletions
|
@ -168,6 +168,9 @@ void ViveControllerManager::setConfigurationSettings(const QJsonObject configura
|
|||
if (isSupported()) {
|
||||
if (configurationSettings.contains("desktopMode")) {
|
||||
_desktopMode = configurationSettings["desktopMode"].toBool();
|
||||
if (!_desktopMode) {
|
||||
_resetMatCalculated = false;
|
||||
}
|
||||
}
|
||||
_inputDevice->configureCalibrationSettings(configurationSettings);
|
||||
}
|
||||
|
@ -761,7 +764,7 @@ glm::mat4 ViveControllerManager::InputDevice::calculateDefaultToReferenceForHead
|
|||
glm::mat4 finalHeadPuck = newHeadPuck * headPuckOffset;
|
||||
|
||||
// calculate the defaultToRefrenceXform
|
||||
glm::mat4 defaultToReferenceMat = currentHead * glm::inverse(inputCalibration.defaultHeadMat);
|
||||
glm::mat4 defaultToReferenceMat = finalHeadPuck * glm::inverse(inputCalibration.defaultHeadMat);
|
||||
return defaultToReferenceMat;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue