Post

Replies

Boosts

Views

Activity

Reply to How to determine point on phone screen where a user is looking at, by using data from ARKit FaceAnchor
What I get isn't constant but its the typical position of the "face/ face mesh" on the screen. This position only adjust with movement of the face and not movement of the eyes itself. Also noticed this position also change with the position of the device. // Here are my codes     func renderer( _ renderer: SCNSceneRenderer, didUpdate node: SCNNode, for anchor: ARAnchor) {       guard let faceAnchor = anchor as? ARFaceAnchor,         let faceGeometry = node.geometry as? ARSCNFaceGeometry else {           return       }       faceGeometry.update(from: faceAnchor.geometry)       let lookAtPointPosition = SCNVector3(faceAnchor.lookAtPoint) // also tried with LeftTransform & rightTransform       let projectionPoint = renderer.projectPoint((lookAtPointPosition))       let pointOnScreen = CGPoint(x: Double(projectionPoint.x), y: Double(projectionPoint.y))
Mar ’21