Distance between face and camera using ARKit
Is there any where are you to get distance between camera and face using ARKit ? I think this is possible by using the ARFaceAnchor.leftEyeTransform and ARFaceAnchor.rightEyeTransform properties. Once you have these you can get the approximate distance of the eyes to the Camera using the worldPosition of the Eyes and subtracting the position of the Camera e.g. SCNVector3Zero . Below is a very crude example with all the code commented so it should be easy enough to understand: Hope it helps... By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.