![]() |
Plasma Engine
2.0
|
XR spatial anchors interface. More...
#include <XRSpatialAnchorsInterface.h>
Public Member Functions | |
virtual plXRSpatialAnchorID | CreateAnchor (const plTransform &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 plResult | DestroyAnchor (plXRSpatialAnchorID id)=0 |
Destroys a previously created anchor. | |
virtual plResult | TryGetAnchorTransform (plXRSpatialAnchorID id, plTransform &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 plSingletonRegistry::GetSingletonInstance<plXRSpatialAnchorsInterface>().
|
pure virtual |
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.
Implemented in plOpenXRSpatialAnchors.
|
pure virtual |
Destroys a previously created anchor.
Implemented in plOpenXRSpatialAnchors.
|
pure virtual |
Tries to resolve the anchor position. Can fail of the anchor is invalid or tracking is currently lost.
Implemented in plOpenXRSpatialAnchors.