diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-11-25 22:00:05 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-11-25 22:00:05 +0100 |
commit | afe16ef464e408a529b593b81865e8e105667c47 (patch) | |
tree | ce3d6329b030df3b783d90c2aebd7f935579afef | |
parent | c35eb0eba9234c45571149ea45f8d93f1c1566dc (diff) |
Make default position the standing position
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 63c0f88..1bae1fc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -677,6 +677,8 @@ bool CMainApplication::BInit() return false; } + auto standing_pos = m_pHMD->GetSeatedZeroPoseToStandingAbsoluteTrackingPose(); + hmd_pos += glm::vec3(standing_pos.m[0][3], standing_pos.m[1][3], standing_pos.m[2][3]); int nWindowPosX = 700; int nWindowPosY = 100; @@ -2266,6 +2268,7 @@ void CMainApplication::UpdateHMDMatrixPose() glm::mat4 *mat = (glm::mat4*)&m_rTrackedDevicePose[nDevice].mDeviceToAbsoluteTracking; hmd_rot = glm::quat_cast(*mat); + m_rDevClassChar[nDevice] = 'H'; break; } |