From 2e17cde16452041c7e2e8592914f52b615b0eea3 Mon Sep 17 00:00:00 2001
From: Jens Koenen <koenen@vr.rwth-aachen.de>
Date: Mon, 25 Jul 2022 17:07:53 +0200
Subject: [PATCH] Added description for local and stage reference frame.

---
 src/headset/openxr_headset.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/headset/openxr_headset.cpp b/src/headset/openxr_headset.cpp
index 28981a01..85b51d96 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;
  
-- 
GitLab