Fix local_floor x offset being unset

This commit is contained in:
Patrick Nicolas
2024-08-01 09:01:17 +02:00
parent e70c427fe8
commit a90e763934
+1 -1
View File
@@ -979,7 +979,7 @@ void scenes::stream::update_local_floor(XrTime when)
};
xrLocateSpace(stage, local, when, &location);
XrPosef offset{{0, 0, 0, 1}, {0, location.pose.position.y, 0}};
XrPosef offset{{0, 0, 0, 1}, {location.pose.position.x, location.pose.position.y, 0}};
std::lock_guard lock(local_floor_mutex);
local_floor = session.create_reference_space(XR_REFERENCE_SPACE_TYPE_LOCAL, offset);
}