XII Release 0.1.0
Loading...
Searching...
No Matches
xiiXRSpatialAnchorsInterface Class Referenceabstract

XR spatial anchors interface. More...

#include <XRSpatialAnchorsInterface.h>

Public Member Functions

virtual xiiXRSpatialAnchorID CreateAnchor (const xiiTransform &globalTransform)=0
 Creates a spatial anchor at the given world space position. Returns an invalid handle if anchors can't be created right now. Retry next frame.
 
virtual xiiResult DestroyAnchor (xiiXRSpatialAnchorID id)=0
 Destroys a previously created anchor.
 
virtual xiiResult TryGetAnchorTransform (xiiXRSpatialAnchorID id, xiiTransform &out_globalTransform)=0
 Tries to resolve the anchor position. Can fail of the anchor is invalid or tracking is currently lost.
 

Detailed Description

XR spatial anchors interface.

Aquire interface via xiiSingletonRegistry::GetSingletonInstance<xiiXRSpatialAnchorsInterface>().


The documentation for this class was generated from the following file: