Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1996)

Unified Diff: device/vr/openvr/openvr_device.cc

Issue 2829233003: Read poses relative to the seated zero pose for OpenVR (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/openvr/openvr_device.cc
diff --git a/device/vr/openvr/openvr_device.cc b/device/vr/openvr/openvr_device.cc
index f129d977e0a77510ee14f763cf9f171dcea8b523..9d81cd0c9bad8d35aa768bb65910d27ab42cb515 100644
--- a/device/vr/openvr/openvr_device.cc
+++ b/device/vr/openvr/openvr_device.cc
@@ -216,7 +216,7 @@ device::mojom::VRPosePtr OpenVRDevice::OpenVRRenderLoop::getPose() {
vr::TrackedDevicePose_t poses[vr::k_unMaxTrackedDeviceCount];
vr_system_->GetDeviceToAbsoluteTrackingPose(
- vr::TrackingUniverseStanding, 0.0f, poses, vr::k_unMaxTrackedDeviceCount);
+ vr::TrackingUniverseSeated, 0.0f, poses, vr::k_unMaxTrackedDeviceCount);
const auto& hmdPose = poses[vr::k_unTrackedDeviceIndex_Hmd];
if (hmdPose.bPoseIsValid && hmdPose.bDeviceIsConnected) {
const auto& transform = hmdPose.mDeviceToAbsoluteTracking;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698