diff options
author | Clay John <claynjohn@gmail.com> | 2022-11-10 09:51:42 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-10 09:51:42 -0800 |
commit | d2bd8e5289d67d94ab9c087a6308eaebd4eea91a (patch) | |
tree | 3af4d91c47b49d6d9b88a3b57cf60190c2747295 /servers/xr/xr_interface.cpp | |
parent | dca5cb8e40fd2a348a59ea73c597eb742c14c980 (diff) | |
parent | 84f6791bd8278e27a1c993440335dfd1457968d7 (diff) |
Merge pull request #68390 from cheece/expose_get_transform_for_view
expose XRInterface::get_transform_for_view to gdscript
Diffstat (limited to 'servers/xr/xr_interface.cpp')
-rw-r--r-- | servers/xr/xr_interface.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/xr/xr_interface.cpp b/servers/xr/xr_interface.cpp index a5ee1d5726..4d58d24405 100644 --- a/servers/xr/xr_interface.cpp +++ b/servers/xr/xr_interface.cpp @@ -72,6 +72,8 @@ void XRInterface::_bind_methods() { ClassDB::bind_method(D_METHOD("is_passthrough_enabled"), &XRInterface::is_passthrough_enabled); ClassDB::bind_method(D_METHOD("start_passthrough"), &XRInterface::start_passthrough); ClassDB::bind_method(D_METHOD("stop_passthrough"), &XRInterface::stop_passthrough); + ClassDB::bind_method(D_METHOD("get_transform_for_view", "view", "cam_transform"), &XRInterface::get_transform_for_view); + ClassDB::bind_method(D_METHOD("get_projection_for_view", "view", "aspect", "near", "far"), &XRInterface::get_projection_for_view); ADD_GROUP("AR", "ar_"); ADD_PROPERTY(PropertyInfo(Variant::BOOL, "ar_is_anchor_detection_enabled"), "set_anchor_detection_is_enabled", "get_anchor_detection_is_enabled"); |