diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-04-14 04:36:01 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-04-14 04:36:16 +0200 |
commit | e7a89ee7a6fb2a4fc77c80b4e094bf8b2febe798 (patch) | |
tree | a4f6a899ff57a045b191dd3c7a216a1a7fd244b9 /tracker-steamvr/steamvr.cpp | |
parent | 0fb51451aa193c3e1ca3560409b9de99aa36fd9b (diff) |
tracker/steamvr: don't reset seated pose for non-HMD
cf. https://github.com/opentrack/opentrack/issues/352#issuecomment-293885962
Diffstat (limited to 'tracker-steamvr/steamvr.cpp')
-rw-r--r-- | tracker-steamvr/steamvr.cpp | 6 |
1 files 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 |