Plasma Engine  2.0
Loading...
Searching...
No Matches
plOpenXRSpatialAnchors Class Reference
Inheritance diagram for plOpenXRSpatialAnchors:

Public Member Functions

 plOpenXRSpatialAnchors (plOpenXR *pOpenXR)
 
plXRSpatialAnchorID CreateAnchor (const plTransform &globalTransform) override
 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.
 
plResult DestroyAnchor (plXRSpatialAnchorID id) override
 Destroys a previously created anchor.
 
plResult TryGetAnchorTransform (plXRSpatialAnchorID id, plTransform &out_globalTransform) override
 Tries to resolve the anchor position. Can fail of the anchor is invalid or tracking is currently lost.
 

Friends

class plOpenXR
 

Member Function Documentation

◆ CreateAnchor()

plXRSpatialAnchorID plOpenXRSpatialAnchors::CreateAnchor ( const plTransform & globalTransform)
overridevirtual

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.

Implements plXRSpatialAnchorsInterface.

◆ DestroyAnchor()

plResult plOpenXRSpatialAnchors::DestroyAnchor ( plXRSpatialAnchorID id)
overridevirtual

Destroys a previously created anchor.

Implements plXRSpatialAnchorsInterface.

◆ TryGetAnchorTransform()

plResult plOpenXRSpatialAnchors::TryGetAnchorTransform ( plXRSpatialAnchorID id,
plTransform & out_globalTransform )
overridevirtual

Tries to resolve the anchor position. Can fail of the anchor is invalid or tracking is currently lost.

Implements plXRSpatialAnchorsInterface.


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