but haven't been able to get it to work correctly.
Could you explain: what you get
how far it is from what you expect
in which use case ? (e.g., when user is not looking straight ahead)
the code where you compute from lookAtPoint to point on screen
I would try to : 1. get the device coordinates in world coordinates (using ARConfiguration.WorldAlignment.gravity)
2. find the face coordinates in the world coordinates (with ARFaceAnchor.transform property)
you have lookAtPoint which gives the direction in face coordinates
transforming with 1 and 2, you should get the point looked at in device coordinates.
This threads links to some useful resources
https://developer.apple.com/forums/thread/118048
Topic:
App & System Services
SubTopic:
Core OS
Tags: