![]() |
XII Release 0.1.0
|
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. | |
XR spatial anchors interface.
Aquire interface via xiiSingletonRegistry::GetSingletonInstance<xiiXRSpatialAnchorsInterface>().