mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
Offset tablet position to left of screen per feedback
This commit is contained in:
parent
223ed5b59a
commit
c22798a8e6
1 changed files with 2 additions and 3 deletions
|
@ -38,9 +38,8 @@ ContextOverlayInterface::ContextOverlayInterface() {
|
|||
QUuid tabletFrameID = _hmdScriptingInterface->getCurrentTabletFrameID();
|
||||
QVariantMap props;
|
||||
auto myAvatar = DependencyManager::get<AvatarManager>()->getMyAvatar();
|
||||
glm::vec3 position = myAvatar->getJointPosition("Head") + 0.6f * (myAvatar->getOrientation() * Vectors::FRONT);
|
||||
props.insert("position", vec3toVariant(position));
|
||||
props.insert("orientation", quatToVariant(myAvatar->getOrientation() * glm::quat(0.0f, 0.0f, 1.0f, 0.0f)));
|
||||
props.insert("position", vec3toVariant(myAvatar->getEyePosition() + glm::quat(glm::radians(glm::vec3(0.0f, 30.0f, 0.0f))) * (0.65f * (myAvatar->getHeadOrientation() * Vectors::FRONT))));
|
||||
props.insert("orientation", quatToVariant(myAvatar->getHeadOrientation() * glm::quat(glm::radians(glm::vec3(0.0f, 210.0f, 0.0f)))));
|
||||
qApp->getOverlays().editOverlay(tabletFrameID, props);
|
||||
_contextOverlayJustClicked = false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue