1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

OpenXR: Support alternative reference spaces from extensions

Co-authored-by: Fredia Huya-Kouadio <fhuyakou@gmail.com>
This commit is contained in:
David Snopek
2025-02-27 10:42:05 -06:00
parent bf1c2583f4
commit 3f27351f2b
12 changed files with 239 additions and 17 deletions

View File

@@ -753,6 +753,8 @@ XRInterface::PlayAreaMode OpenXRInterface::get_play_area_mode() const {
return XRInterface::XR_PLAY_AREA_ROOMSCALE;
} else if (reference_space == XR_REFERENCE_SPACE_TYPE_STAGE) {
return XRInterface::XR_PLAY_AREA_STAGE;
} else if (reference_space == XR_REFERENCE_SPACE_TYPE_MAX_ENUM) {
return XRInterface::XR_PLAY_AREA_CUSTOM;
}
return XRInterface::XR_PLAY_AREA_UNKNOWN;