Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/modules/openxr/doc_classes/OpenXRPlaneTracker.xml
11323 views
1
<?xml version="1.0" encoding="UTF-8" ?>
2
<class name="OpenXRPlaneTracker" inherits="OpenXRSpatialEntityTracker" experimental="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
3
<brief_description>
4
Spatial entity tracker for our spatial entity plane tracking extension.
5
</brief_description>
6
<description>
7
Spatial entity tracker for our OpenXR spatial entity plane tracking extension. These trackers identify entities in our real space such as walls, floors, tables, etc. and map their location to our virtual space.
8
</description>
9
<tutorials>
10
</tutorials>
11
<methods>
12
<method name="clear_mesh_data">
13
<return type="void" />
14
<description>
15
Clears the mesh data for this tracker. You should only call this if you are handling your own discovery logic.
16
</description>
17
</method>
18
<method name="get_mesh">
19
<return type="Mesh" />
20
<description>
21
Gets a mesh created from either the mesh data or from our bounding size for this plane.
22
</description>
23
</method>
24
<method name="get_mesh_offset" qualifiers="const">
25
<return type="Transform3D" />
26
<description>
27
Gets the transform by which to offset the mesh and collision shape from our pose to display these correctly.
28
</description>
29
</method>
30
<method name="get_shape">
31
<return type="Shape3D" />
32
<param index="0" name="thickness" type="float" default="0.01" />
33
<description>
34
Gets a collision shape built either from the mesh data or from our bounding size for this plane.
35
</description>
36
</method>
37
<method name="set_mesh_data">
38
<return type="void" />
39
<param index="0" name="origin" type="Transform3D" />
40
<param index="1" name="vertices" type="PackedVector2Array" />
41
<param index="2" name="indices" type="PackedInt32Array" default="PackedInt32Array()" />
42
<description>
43
Sets the mesh data for this plane. You should only call this if you are handling your own discovery logic.
44
</description>
45
</method>
46
</methods>
47
<members>
48
<member name="bounds_size" type="Vector2" setter="set_bounds_size" getter="get_bounds_size" default="Vector2(0, 0)">
49
The bounding size of the plane. This is a 2D size.
50
</member>
51
<member name="plane_alignment" type="int" setter="set_plane_alignment" getter="get_plane_alignment" enum="OpenXRSpatialComponentPlaneAlignmentList.PlaneAlignment" default="0">
52
The main alignment in space of this plane.
53
</member>
54
<member name="plane_label" type="String" setter="set_plane_label" getter="get_plane_label" default="&quot;&quot;">
55
The semantic label for this plane.
56
</member>
57
</members>
58
<signals>
59
<signal name="mesh_changed">
60
<description>
61
Emitted when our mesh data has changed the mesh instance and collision needs to be updated.
62
</description>
63
</signal>
64
</signals>
65
</class>
66
67