summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorClay John <claynjohn@gmail.com>2022-11-10 09:51:42 -0800
committerGitHub <noreply@github.com>2022-11-10 09:51:42 -0800
commitd2bd8e5289d67d94ab9c087a6308eaebd4eea91a (patch)
tree3af4d91c47b49d6d9b88a3b57cf60190c2747295 /doc
parentdca5cb8e40fd2a348a59ea73c597eb742c14c980 (diff)
parent84f6791bd8278e27a1c993440335dfd1457968d7 (diff)
Merge pull request #68390 from cheece/expose_get_transform_for_view
expose XRInterface::get_transform_for_view to gdscript
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/XRInterface.xml20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/classes/XRInterface.xml b/doc/classes/XRInterface.xml
index cc483dbd02..05d5eb6673 100644
--- a/doc/classes/XRInterface.xml
+++ b/doc/classes/XRInterface.xml
@@ -35,6 +35,16 @@
Returns an array of vectors that denotes the physical play area mapped to the virtual space around the [XROrigin3D] point. The points form a convex polygon that can be used to react to or visualize the play area. This returns an empty array if this feature is not supported or if the information is not yet available.
</description>
</method>
+ <method name="get_projection_for_view">
+ <return type="Projection" />
+ <param index="0" name="view" type="int" />
+ <param index="1" name="aspect" type="float" />
+ <param index="2" name="near" type="float" />
+ <param index="3" name="far" type="float" />
+ <description>
+ Returns the projection matrix for a view/eye.
+ </description>
+ </method>
<method name="get_render_target_size">
<return type="Vector2" />
<description>
@@ -47,6 +57,16 @@
If supported, returns the status of our tracking. This will allow you to provide feedback to the user whether there are issues with positional tracking.
</description>
</method>
+ <method name="get_transform_for_view">
+ <return type="Transform3D" />
+ <param index="0" name="view" type="int" />
+ <param index="1" name="cam_transform" type="Transform3D" />
+ <description>
+ Returns the transform for a view/eye.
+ [param view] is the view/eye index.
+ [param cam_transform] is the transform that maps device coordinates to scene coordinates, typically the global_transform of the current XROrigin3D.
+ </description>
+ </method>
<method name="get_view_count">
<return type="int" />
<description>