diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-09-12 17:42:36 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-09-12 17:45:41 -0300 |
commit | 4f929a0fdfae24b1ca5acf0b732219119090ee43 (patch) | |
tree | 730471182cae00f2e47c7430db441d057383d29b /doc/classes/ARVROrigin.xml | |
parent | 175777596ec3521731665dd750fd7087793b10fc (diff) |
Changed the doc class generation to individual files per class. It is also possible to save module files in module directories and the build system will
recognize them.
Diffstat (limited to 'doc/classes/ARVROrigin.xml')
-rw-r--r-- | doc/classes/ARVROrigin.xml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/doc/classes/ARVROrigin.xml b/doc/classes/ARVROrigin.xml new file mode 100644 index 0000000000..888bb6ba18 --- /dev/null +++ b/doc/classes/ARVROrigin.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<class name="ARVROrigin" inherits="Spatial" category="Core" version="3.0.alpha.custom_build"> + <brief_description> + Our origin point in AR/VR. + </brief_description> + <description> + This is a special node within the AR/VR system that maps the physical location of the center of our tracking space to the virtual location within our game world. + There should be only one of these nodes in your scene and you must have one. All the ARVRCamera, ARVRController and ARVRAnchor nodes should be direct children of this node for spatial tracking to work correctly. + It is the position of this node that you update when you're character needs to move through your game world while we're not moving in the real world. Movement in the real world is always in relation to this origin point. + So say that your character is driving a car, the ARVROrigin node should be a child node of this car. If you implement a teleport system to move your character, you change the position of this node. Etc. + </description> + <tutorials> + </tutorials> + <demos> + </demos> + <methods> + <method name="get_world_scale" qualifiers="const"> + <return type="float"> + </return> + <description> + Get the world scale applied to our positioning. + </description> + </method> + <method name="set_world_scale"> + <return type="void"> + </return> + <argument index="0" name="world_scale" type="float"> + </argument> + <description> + Changes the world scaling factor. + Most AR/VR platforms will assume a unit size of 1 unit in your game world = 1 meter in the real world. This scale allows you to adjust this to the unit system you use in your game. + Note that this method is a passthrough to the ARVRServer itself. + </description> + </method> + </methods> + <members> + <member name="world_scale" type="float" setter="set_world_scale" getter="get_world_scale" brief=""> + </member> + </members> + <constants> + </constants> +</class> |