mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 08:14:48 +02:00
do not tilt virtual keyboard
This commit is contained in:
parent
4aa5e87a26
commit
2ac6dc8798
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ void showOpenVrKeyboard(bool show = true) {
|
|||
if (vr::VROverlayError_None == showKeyboardResult) {
|
||||
_keyboardShown = true;
|
||||
// Try to position the keyboard slightly below where the user is looking.
|
||||
mat4 headPose = toGlm(_trackedDevicePose[0].mDeviceToAbsoluteTracking);
|
||||
mat4 headPose = cancelOutRollAndPitch(toGlm(_trackedDevicePose[0].mDeviceToAbsoluteTracking));
|
||||
mat4 keyboardTransform = glm::translate(headPose, vec3(0, -0.5, -1));
|
||||
keyboardTransform = keyboardTransform * glm::rotate(mat4(), 3.14159f / 4.0f, vec3(-1, 0, 0));
|
||||
auto keyboardTransformVr = toOpenVr(keyboardTransform);
|
||||
|
|
Loading…
Reference in a new issue