Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

OpenXRPlaneTracker

Sperimentale: This class may be changed or removed in future versions.

Eredita: OpenXRSpatialEntityTracker < XRPositionalTracker < XRTracker < RefCounted < Object

Spatial entity tracker for our spatial entity plane tracking extension.

Descrizione

Tracker di entità spaziali per la nostra estensione di tracciamento dei piani sulle entità spaziali per OpenXR. Questi tracker identificano entità nel nostro spazio reale, come muri, pavimenti, tavoli, ecc., e ne mappano la posizione nel nostro spazio virtuale.

Proprietà

Vector2

bounds_size

Vector2(0, 0)

PlaneAlignment

plane_alignment

0

String

plane_label

""

Metodi

void

clear_mesh_data()

Mesh

get_mesh()

Transform3D

get_mesh_offset() const

Shape3D

get_shape(thickness: float = 0.01)

void

set_mesh_data(origin: Transform3D, vertices: PackedVector2Array, indices: PackedInt32Array = PackedInt32Array())


Segnali

mesh_changed() 🔗

Emitted when our mesh data has changed the mesh instance and collision needs to be updated.


Descrizioni delle proprietà

Vector2 bounds_size = Vector2(0, 0) 🔗

The bounding size of the plane. This is a 2D size.


PlaneAlignment plane_alignment = 0 🔗

The main alignment in space of this plane.


String plane_label = "" 🔗

  • void set_plane_label(value: String)

  • String get_plane_label()

The semantic label for this plane.


Descrizioni dei metodi

void clear_mesh_data() 🔗

Cancella i dati di mesh per questo tracker. Dovresti chiamare questa funzione solo se gestisci la tua logica di individuazione.


Mesh get_mesh() 🔗

Gets a mesh created from either the mesh data or from our bounding size for this plane.


Transform3D get_mesh_offset() const 🔗

Gets the transform by which to offset the mesh and collision shape from our pose to display these correctly.


Shape3D get_shape(thickness: float = 0.01) 🔗

Gets a collision shape built either from the mesh data or from our bounding size for this plane.


void set_mesh_data(origin: Transform3D, vertices: PackedVector2Array, indices: PackedInt32Array = PackedInt32Array()) 🔗

Imposta i dati di mesh per questo piano. Dovresti chiamare questa funzione solo se gestisci la tua logica di individuazione.