World.FromPerceptionAnchor

static Pose FromPerceptionAnchor(Object perceptionSpatialAnchor)

Converts a Windows.Perception.Spatial.SpatialAnchor’s pose into SteroKit’s coordinate system. This can be great for interacting with some of the UWP spatial APIs such as WorldAnchors.

This method only works on UWP platforms, check SK.System.perceptionBridgePresent to see if this is available.

   
Object perceptionSpatialAnchor A valid Windows.Perception.Spatial.SpatialAnchor.
RETURNS: Pose A Pose representing the current orientation of the SpatialAnchor.
static bool FromPerceptionAnchor(Object perceptionSpatialAnchor, Pose& pose)

Converts a Windows.Perception.Spatial.SpatialAnchor’s pose into SteroKit’s coordinate system. This can be great for interacting with some of the UWP spatial APIs such as WorldAnchors.

This method only works on UWP platforms, check SK.System.perceptionBridgePresent to see if this is available.

   
Object perceptionSpatialAnchor A valid Windows.Perception.Spatial.SpatialAnchor.
Pose& pose A resulting Pose representing the current orientation of the spatial node.
RETURNS: bool A Pose representing the current orientation of the SpatialAnchor.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!