mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
c4903a603b
This makes them display in a nicer way in the editor help. (The title will display instead of the full URL.)
26 lines
1.5 KiB
XML
26 lines
1.5 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="XROrigin3D" inherits="Node3D" version="4.0">
|
|
<brief_description>
|
|
The 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 XRCamera3D, XRController3D and XRAnchor3D 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 XROrigin3D 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.
|
|
</description>
|
|
<tutorials>
|
|
<link title="VR tutorial index">https://docs.godotengine.org/en/latest/tutorials/vr/index.html</link>
|
|
</tutorials>
|
|
<methods>
|
|
</methods>
|
|
<members>
|
|
<member name="world_scale" type="float" setter="set_world_scale" getter="get_world_scale" default="1.0">
|
|
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.
|
|
[b]Note:[/b] This method is a passthrough to the [XRServer] itself.
|
|
</member>
|
|
</members>
|
|
<constants>
|
|
</constants>
|
|
</class>
|