summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBastiaan Olij <mux213@gmail.com>2023-03-01 20:02:25 +1100
committerYuri Sizov <yuris@humnom.net>2023-03-27 16:56:22 +0200
commita94a2062af97f634f8192208a59f1656d1af680f (patch)
tree0521599f5e620b81c2098fb5926b74a7b1fdd946 /doc
parent7a3f8a83da792865d717cc2dd793ec24449ef6d7 (diff)
Add XRServer.world_origin property
(cherry picked from commit fd8f26f26e2f8875e4e305bc22f04f0deaf9a44c)
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/XRServer.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/classes/XRServer.xml b/doc/classes/XRServer.xml
index d940ea41ac..c7ba94b1b4 100644
--- a/doc/classes/XRServer.xml
+++ b/doc/classes/XRServer.xml
@@ -108,6 +108,10 @@
<member name="primary_interface" type="XRInterface" setter="set_primary_interface" getter="get_primary_interface">
The primary [XRInterface] currently bound to the [XRServer].
</member>
+ <member name="world_origin" type="Transform3D" setter="set_world_origin" getter="get_world_origin" default="Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)">
+ The current origin of our tracking space in the virtual world. This is used by the renderer to properly position the camera with new tracking data.
+ [b]Note:[/b] This property is managed by the current [XROrigin3D] node. It is exposed for access from GDExtensions.
+ </member>
<member name="world_scale" type="float" setter="set_world_scale" getter="get_world_scale" default="1.0">
Allows you to adjust the scale to your game's units. Most AR/VR platforms assume a scale of 1 game world unit = 1 real world meter.
</member>