Post

Replies

Boosts

Views

Activity

Reply to Translate ARKit face anchor to camera coordinates
I'm new to Swift plz have patience. Can you explain in detail how you get the coordinates and rotation values of the faceAnchor? I'm able to access the faceAnchor.transform for each value but that is a 4x4 matrix. What do those numbers mean? The (documentation on ARFaceAnchor - https://developer.apple.com/documentation/arkit/arfaceanchor) just vaguely says that it describes the "face’s current position and orientation in world coordinates". I get that everything is relative and the coordinates are in relation to some defined coordinate system, but what ARE the points ya know? In my head, it only requires 6 values to define an object in 3D space: x, y, z, and a vector of 3 values to explain the rotation. I also understand that there is gimbal lock which is probably why there are more than 6 values. So what exactly are the values in the faceAnchor.transform and how do I extract the x, y, z and rotation? Thank you.
Jul ’20