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.

OpenXRSpatialEntityTracker

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

Eredita: XRPositionalTracker < XRTracker < RefCounted < Object

Ereditato da: OpenXRAnchorTracker, OpenXRMarkerTracker, OpenXRPlaneTracker

Base class for Positional trackers managed by OpenXR's spatial entity extensions.

Descrizione

Questi sono tracker creati e gestiti dalle estensioni di entità spaziali di OpenXR che forniscono accesso a dati specifici relativi alle entità spaziali di OpenXR. Saranno sempre di tipo TRACKER_ANCHOR.

Proprietà

RID

entity

RID()

EntityTrackingState

spatial_tracking_state

2

TrackerType

type

8 (overrides XRTracker)

Metodi

void

add_next(next: OpenXRStructureBase)

OpenXRStructureBase

get_next() const

RID

get_spatial_context() const

void

remove_next(next: OpenXRStructureBase)

void

set_spatial_context(spatial_context: RID)


Segnali

next_changed() 🔗

Emitted when the next-chain changes, from either add_next() or remove_next().


spatial_tracking_state_changed(spatial_tracking_state: int) 🔗

There is currently no description for this signal. Please help us by contributing one!


Enumerazioni

enum EntityTrackingState: 🔗

EntityTrackingState ENTITY_TRACKING_STATE_STOPPED = 1

Questo ancoraggio ha smesso di tracciare.

EntityTrackingState ENTITY_TRACKING_STATE_PAUSED = 2

Tracking is currently paused.

EntityTrackingState ENTITY_TRACKING_STATE_TRACKING = 3

Questo ancoraggio è attualmente tracciato.


Descrizioni delle proprietà

RID entity = RID() 🔗

  • void set_entity(value: RID)

  • RID get_entity()

The spatial entity associated with this tracker.


EntityTrackingState spatial_tracking_state = 2 🔗

The spatial tracking state for this tracker.


Descrizioni dei metodi

void add_next(next: OpenXRStructureBase) 🔗

Adds a new OpenXRStructureBase to the next-chain.

get_next() will return this next until either add_next() is called again or it's removed in remove_next().


OpenXRStructureBase get_next() const 🔗

Gets the head OpenXRStructureBase in the next-chain.

See also add_next() and remove_next().


RID get_spatial_context() const 🔗

Gets the spatial context used to create this OpenXRSpatialEntityTracker.


void remove_next(next: OpenXRStructureBase) 🔗

Removes a next object previously added in add_next() from the next-chain.


void set_spatial_context(spatial_context: RID) 🔗

Sets the spatial context used to create this tracker.