summaryrefslogtreecommitdiff
path: root/modules/mobile_vr/doc_classes
diff options
context:
space:
mode:
authorBastiaan Olij <mux213@gmail.com>2019-04-10 00:14:10 +1000
committerBastiaan Olij <mux213@gmail.com>2019-04-10 01:11:17 +1000
commite0b703e3fe9da396f9ad0c8bd29bb61ab1ab0fdd (patch)
tree5cc488a6bbd6b6e37751d1be0d084e709b0dd26e /modules/mobile_vr/doc_classes
parent846e7bbc53931df81bfdcda77035b01edcfa42c1 (diff)
Added eye_height, changed description and fixed size of viewport issue
Diffstat (limited to 'modules/mobile_vr/doc_classes')
-rw-r--r--modules/mobile_vr/doc_classes/MobileVRInterface.xml11
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/mobile_vr/doc_classes/MobileVRInterface.xml b/modules/mobile_vr/doc_classes/MobileVRInterface.xml
index 0a75ad4784..dbebaae38d 100644
--- a/modules/mobile_vr/doc_classes/MobileVRInterface.xml
+++ b/modules/mobile_vr/doc_classes/MobileVRInterface.xml
@@ -5,7 +5,13 @@
</brief_description>
<description>
This is a generic mobile VR implementation where you need to provide details about the phone and HMD used. It does not rely on any existing framework. This is the most basic interface we have. For the best effect you do need a mobile phone with a gyroscope and accelerometer.
- Note that even though there is no positional tracking the camera will assume the headset is at a height of 1.85 meters.
+ Note that even though there is no positional tracking the camera will assume the headset is at a height of 1.85 meters, you can change this by setting [member eye_height].
+ You can initialise this interface as follows:
+ [codeblock]
+ var interface = ARVRServer.find_interface("Native mobile")
+ if interface and interface.initialize():
+ get_viewport().arvr = true
+ [/codeblock]
</description>
<tutorials>
</tutorials>
@@ -20,6 +26,9 @@
<member name="display_width" type="float" setter="set_display_width" getter="get_display_width">
The width of the display in centimeters.
</member>
+ <member name="eye_height" type="float" setter="set_eye_height" getter="get_eye_height">
+ The height at which the camera is placed in relation to the ground (i.e. [ARVROrigin] node).
+ </member>
<member name="iod" type="float" setter="set_iod" getter="get_iod">
The interocular distance, also known as the interpupillary distance. The distance between the pupils of the left and right eye.
</member>