move UI plane when toggled in VR, fix vr start/stop on Quest

This commit is contained in:
2019-06-01 22:59:45 +02:00
parent 78f453f89c
commit e5c7a35fd2
5 changed files with 52 additions and 16 deletions

View File

@@ -98,13 +98,12 @@ void Vive::Update()
m_proj[eye] = mat_proj;
m_view[eye] = mat_eye * mat_pose;
m_pose = mat_pose;
m_pose = glm::make_mat4(data_hmd_pose);
// invalidate controller state
for (auto& c : m_controllers)
c.m_valid = false;
int controller_index = 0;
auto pose_inv = glm::inverse(m_pose);
for (int id = 0; id < vr::k_unMaxTrackedDeviceCount; id++)
{