From e7a89ee7a6fb2a4fc77c80b4e094bf8b2febe798 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 14 Apr 2017 04:36:01 +0200 Subject: tracker/steamvr: don't reset seated pose for non-HMD cf. https://github.com/opentrack/opentrack/issues/352#issuecomment-293885962 --- tracker-steamvr/steamvr.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tracker-steamvr/steamvr.cpp b/tracker-steamvr/steamvr.cpp index 80a71e1d..8998149c 100644 --- a/tracker-steamvr/steamvr.cpp +++ b/tracker-steamvr/steamvr.cpp @@ -252,11 +252,11 @@ bool steamvr::center() { if (v) { - // Reset yaw and position - v->ResetSeatedZeroPose(); - if (v->GetTrackedDeviceClass(device_index) == vr::ETrackedDeviceClass::TrackedDeviceClass_HMD) { + // Reset yaw and position + v->ResetSeatedZeroPose(); + // Use chaperone universe real world up instead of opentrack's initial pose centering // Note: Controllers will be centered based on initial headset position. // TODO: may want to center controller/tracker yaw and position (only) when used alone -- cgit v1.2.3