⚠ Preview docs — built from the develop branch and may be unstable. Go to the stable docs.

SpatialEntity.Pose

Pose Pose{ get }

Description

Where this entity is in the world, from its anchor, or else the center of its 2D or 3D bounds. This is live while Tracked is active, and last known otherwise. It’s Pose.Identity until the entity has any data, like a FindAnchor that hasn’t loaded yet, or something first seen while untracked. For a specific meaning, use the matching TryGet.

Examples

Reading QR codes

public void StartQrCodes()
{
	Spatial.Request(SpatialCapability.QrCode);
}

public void StepQrCodes()
{
	// New lists each entity exactly once, on the frame it appears
	foreach (SpatialEntity code in SpatialEntity.NewWith(SpatialComponent.Marker))
		Log.Info($"Found a QR code: {code.MarkerText}");

	foreach (SpatialEntity code in SpatialEntity.With(SpatialComponent.Marker))
	{
		// Codes keep their last pose out of view, so only show ones in sight
		if (code.Tracked.IsActive())
			Text.Add(code.MarkerText ?? "", code.Pose.ToMatrix());
	}
}




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