Skip to content
0.2.0-dev Download ZIP
77 lines ·3.2 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="OpenXRPlaneTracker" inherits="OpenXRSpatialEntityTracker" api_type="core" 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_indices" qualifiers="const">
19 <return type="PackedInt32Array" />
20 <description>
21 Gets the index data for the mesh.
22 </description>
23 </method>
24 <method name="get_mesh">
25 <return type="Mesh" />
26 <description>
27 Gets a mesh created from either the mesh data or from our bounding size for this plane. This mesh is cached and will return the same resource when called while vertex and index data remains unchanged.
28 </description>
29 </method>
30 <method name="get_mesh_offset" qualifiers="const">
31 <return type="Transform3D" />
32 <description>
33 Gets the transform by which to offset the mesh and collision shape from our pose to display these correctly.
34 </description>
35 </method>
36 <method name="get_shape">
37 <return type="Shape3D" />
38 <param index="0" name="thickness" type="float" default="0.01" />
39 <description>
40 Gets a collision shape built either from the mesh data or from our bounding size for this plane.
41 </description>
42 </method>
43 <method name="get_vertices" qualifiers="const">
44 <return type="PackedVector2Array" />
45 <description>
46 Gets the vertex data for the mesh.
47 </description>
48 </method>
49 <method name="set_mesh_data">
50 <return type="void" />
51 <param index="0" name="origin" type="Transform3D" />
52 <param index="1" name="vertices" type="PackedVector2Array" />
53 <param index="2" name="indices" type="PackedInt32Array" default="PackedInt32Array()" />
54 <description>
55 Sets the mesh data for this plane. You should only call this if you are handling your own discovery logic.
56 </description>
57 </method>
58 </methods>
59 <members>
60 <member name="bounds_size" type="Vector2" setter="set_bounds_size" getter="get_bounds_size" default="Vector2(0, 0)">
61 The bounding size of the plane. This is a 2D size.
62 </member>
63 <member name="plane_alignment" type="int" setter="set_plane_alignment" getter="get_plane_alignment" enum="OpenXRSpatialComponentPlaneAlignmentList.PlaneAlignment" default="0">
64 The main alignment in space of this plane.
65 </member>
66 <member name="plane_label" type="String" setter="set_plane_label" getter="get_plane_label" default="&quot;&quot;">
67 The semantic label for this plane.
68 </member>
69 </members>
70 <signals>
71 <signal name="mesh_changed">
72 <description>
73 Emitted when our mesh data has changed the mesh instance and collision needs to be updated.
74 </description>
75 </signal>
76 </signals>
77</class>