summaryrefslogtreecommitdiff
path: root/doc/classes/ARVROrigin.xml
blob: 1ee17938d380085be39def6be1060b31511b19b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version="1.0" encoding="UTF-8" ?>
<class name="ARVROrigin" inherits="Spatial" category="Core" version="3.0-rc1">
	<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>
	</methods>
	<members>
		<member name="world_scale" type="float" setter="set_world_scale" getter="get_world_scale">
			Allows you to adjust the scale to your game's units. Most AR/VR platforms assume a scale of 1 game world unit = 1 meter in the real world.
			Note that this method is a passthrough to the [ARVRServer] itself.
		</member>
	</members>
	<constants>
	</constants>
</class>