MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / FromSpatialNode

Method FromSpatialNode

StereoKit/Systems/World.cs:118–119  ·  view source on GitHub ↗

Converts a Windows Mirage spatial node GUID into a Pose based on its current position and rotation! Check SK.System.spatialBridgePresent to see if this is available to use. Currently only on HoloLens, good for use with the Windows QR code package. A Windows Mirage spatial node GUID acquired from a windows MR API call. <param name="spatialNod

(Guid spatialNodeGuid, SpatialNodeType spatialNodeType = SpatialNodeType.Static, long qpcTime = 0)

Source from the content-addressed store, hash-verified

116 /// <returns>A Pose representing the current orientation of the
117 /// spatial node.</returns>
118 public static Pose FromSpatialNode(Guid spatialNodeGuid, SpatialNodeType spatialNodeType = SpatialNodeType.Static, long qpcTime = 0)
119 => NativeAPI.world_from_spatial_graph(spatialNodeGuid.ToByteArray(), spatialNodeType == SpatialNodeType.Dynamic, qpcTime);
120
121 /// <summary>Converts a Windows Mirage spatial node GUID into a Pose
122 /// based on its current position and rotation! Check

Callers 1

FromCodeMethod · 0.80

Calls 2

Tested by

no test coverage detected