Skip to main content
API Reference SwiftyNsdk

VpsAnchorUpdate

Contains the latest tracking information for a VPS anchor....

Declaration

struct VpsAnchorUpdate

Summary

Contains the latest tracking information for a VPS anchor. Anchor updates are retrieved via getAnchorUpdate(anchorId:) and provide the most current information about an anchor's position, orientation, and tracking status. This is a snapshot of the anchor, and the latest anchor update should be used every frame.


Properties

NameTypeSummary
var anchorIdNsdkVpsAnchorId
The unique identifier of the anchor.
var anchorToLocalTransformsimd_float4x4?
The 4x4 transformation matrix from anchor space to local tracking space.
This matrix represents the anchor's position and orientation relative to the
device's current local coordinate system. Use this for placing AR content
relative to the anchor.
var descriptionString
A textual representation of this instance.
Calling this property directly is discouraged. Instead, convert an
instance of any type to a string by using the String(describing:)
initializer. This initializer works with any type, and uses the custom
description property for types that conform to
CustomStringConvertible:
struct Point: CustomStringConvertible {
let x: Int, y: Int
var description: String {
return "(\(x), \(y))"
}
}
let p = Point(x: 21, y: 30)
let s = String(describing: p)
print(s)
// Prints "(21, 30)"
The conversion of p to a string in the assignment to s uses the
Point type's description property.
var timestampMsUInt64?
Timestamp when this update was generated (in milliseconds since epoch).
var trackingConfidenceFloat?
Confidence score for the current tracking estimate.
A value between 0.0 and 1.0 indicating the reliability of the pose estimate.
Higher values indicate more reliable tracking.
var trackingStateAnchorTrackingState
The current tracking state of the anchor.
Indicates whether the anchor is being tracked and how reliable the pose data is.
See AnchorTrackingState for detailed information about each state.
var trackingStateReasonAnchorTrackingStateReason
Additional context about the tracking state.

Nested Types

Enums

NameTypeSummary
AnchorTrackingStateAnchorTrackingState
Represents the current tracking state of a VPS anchor.
The tracking state indicates how well the system is able to track an anchor's position
and orientation in the current environment.
AnchorTrackingStateReasonAnchorTrackingStateReason
Provides additional context about why an anchor is in either the NotTracked
or Limited tracking states.

Relationships

conforms to: Swift.CustomStringConvertible