Skip to main content
API Reference SwiftyNsdk NsdkVpsSession

createAnchor

Requests to create an anchor at the specified pose. This will create an anchor relative...

Declaration

func createAnchor(at pose: simd_float4x4) throws -> NsdkVpsAnchorId

Summary

Requests to create an anchor at the specified pose. This will create an anchor relative
to the currently tracked location that can be used to localize in future sessions.
- Attention: This method requires that the session has successfully localized (an
anchor was successfully tracked) before it returns a valid anchor payload for future sessions.
- Parameter pose: The 4x4 transformation matrix representing the anchor's position and
orientation
- Returns: A unique identifier for the created anchor


ON THIS PAGE