Maintain distance to controller when recentering

This commit is contained in:
Patrick Nicolas
2024-04-13 11:24:50 +02:00
parent 191b3ef477
commit 09c2bf19e5
4 changed files with 30 additions and 8 deletions
+1
View File
@@ -101,6 +101,7 @@ class lobby : public scene_impl<lobby>
XrAction recenter_left_action = XR_NULL_HANDLE;
XrAction recenter_right_action = XR_NULL_HANDLE;
std::optional<float> gui_recenter_distance;
bool recenter_gui = true;
void move_gui(glm::vec3 head_position, glm::vec3 new_gui_position);