move UI plane when toggled in VR, fix vr start/stop on Quest
This commit is contained in:
@@ -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++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user