diff --git a/src/headset/openxr_headset.cpp b/src/headset/openxr_headset.cpp index 28981a0188b4b2ad5606aed23eb20eb321ed7813..85b51d96b4ba14fcfeba0adb22193a79968832a7 100644 --- a/src/headset/openxr_headset.cpp +++ b/src/headset/openxr_headset.cpp @@ -220,7 +220,14 @@ bool OpenXRHeadset::on_create() XrReferenceSpaceCreateInfo space_info; space_info.type = XR_TYPE_REFERENCE_SPACE_CREATE_INFO; space_info.next = nullptr; + + // OPTION: + // XR_REFERENCE_SPACE_TYPE_LOCAL: The origin of the world coordinate frame is the point that was defined during the calibration of the headset. + // XR_REFERENCE_SPACE_TYPE_STAGE: The origin of the world coordinate frame is the ground point that was defined during the calibration of the environment. + // For more information see: + // https://registry.khronos.org/OpenXR/specs/1.0/html/xrspec.html#XrReferenceSpaceType space_info.referenceSpaceType = XR_REFERENCE_SPACE_TYPE_LOCAL; + memset(&space_info.poseInReferenceSpace, 0, sizeof(space_info.poseInReferenceSpace)); space_info.poseInReferenceSpace.orientation.w = 1.0f;