:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/3.6/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/3.6/doc/classes/ARVROrigin.xml. .. _class_ARVROrigin: ARVROrigin ========== **Inherits:** :ref:`Spatial` **<** :ref:`Node` **<** :ref:`Object` The origin point in AR/VR. .. rst-class:: classref-introduction-group 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 your 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. For example, if your character is driving a car, the ARVROrigin node should be a child node of this car. Or, if you're implementing a teleport system to move your character, you should change the position of this node. .. rst-class:: classref-introduction-group Tutorials --------- - :doc:`../tutorials/vr/index` .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +---------------------------+-----------------------------------------------------------+---------+ | :ref:`float` | :ref:`world_scale` | ``1.0`` | +---------------------------+-----------------------------------------------------------+---------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_ARVROrigin_property_world_scale: .. rst-class:: classref-property :ref:`float` **world_scale** = ``1.0`` .. rst-class:: classref-property-setget - void **set_world_scale** **(** :ref:`float` value **)** - :ref:`float` **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 real world meter. \ **Note:** This method is a passthrough to the :ref:`ARVRServer` itself. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`