From afe16ef464e408a529b593b81865e8e105667c47 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 25 Nov 2020 22:00:05 +0100 Subject: Make default position the standing position --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; } -- cgit v1.2.3