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