From 5d1ea92daf3eb2b9d7688b43568e8f2d0b7c0ab8 Mon Sep 17 00:00:00 2001 From: Bastiaan Olij Date: Sun, 29 Aug 2021 16:05:11 +1000 Subject: Rework XR positional trackers --- doc/classes/XRServer.xml | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) (limited to 'doc/classes/XRServer.xml') diff --git a/doc/classes/XRServer.xml b/doc/classes/XRServer.xml index 0929094fd1..87164ebb52 100644 --- a/doc/classes/XRServer.xml +++ b/doc/classes/XRServer.xml @@ -90,20 +90,21 @@ - Returns the reference frame transform. Mostly used internally and exposed for GDNative build interfaces. + Returns the reference frame transform. Mostly used internally and exposed for GDExtension build interfaces. - + - Returns the positional tracker at the given ID. + Returns the positional tracker with this name. - - + + + - Returns the number of trackers currently registered. + Returns a dictionary of trackers for this type. @@ -145,7 +146,6 @@ - Emitted when a new tracker has been added. If you don't use a fixed number of controllers or if you're using [XRAnchor3D]s for an AR solution, it is important to react to this signal to add the appropriate [XRController3D] or [XRAnchor3D] nodes related to this new tracker. @@ -153,20 +153,29 @@ - Emitted when a tracker is removed. You should remove any [XRController3D] or [XRAnchor3D] points if applicable. This is not mandatory, the nodes simply become inactive and will be made active again when a new tracker becomes available (i.e. a new controller is switched on that takes the place of the previous one). + + + + + Emitted when an existing tracker has been updated. This can happen if the user switches controllers. + + - + + The tracker tracks the location of the players head. This is usually a location centered between the players eyes. Note that for handheld AR devices this can be the current location of the device. + + The tracker tracks the location of a controller. - + The tracker tracks the location of a base station. - + The tracker tracks the location and size of an AR anchor. -- cgit v1.2.3