I am using a WorldTrackingProvider in a VisionOS application
let session = ARKitSession()
let worldInfo = WorldTrackingProvider()
...
try? await session.run([worldInfo])
so that I can query the position of the device using queryDeviceAnchor on each frame:
guard let pose = worldInfo.queryDeviceAnchor(atTimestamp: CACurrentMediaTime()) else {
return
}
let toDeviceTransform = pose.originFromAnchorTransform
let devicePosition = toDeviceTransform.translation
This works great, but I realize I don’t understand what point on the actual device
this represents for a stereo device. The left eye, middle eye, in-between the two eyes?
I assume the middle eye and the cameras are offset from this for stereo. Anyone know?