I am experimenting with Apple's ARKit and have a question regarding camera transformations. Which of the values in the transform matrix represent how far the user has travelled from the point of origin? Calling
self.sceneView.session.currentFrame!.camera.transform.columns.0.x
does not seem to yield the correct X
translation.
Additionally, what would be the correct location for Y
and Z
?