Post

Replies

Boosts

Views

Activity

iPhone Mirroring does not work with remote desktop?
Hi there, I have an iOS 18 device and a macOS 15 MacBook, both of which were upgraded to beta 2 yesterday. I tried the iPhone Mirroring at home, and it worked. Today, I left my iPhone at home and connected to my MacBook from the office via remote desktop (aka VNC). I could mirror my iPhone but could not do anything with it, like swipe the iPhone screen or click to open an app. So I wonder whether this is a bug or a feature. I really hope this is a bug that will be fixed in the future.
0
1
93
3d
determine the current person’s head pose precisely in ARKit’s face recognition
Hi there, I'd like to accurately determine the current person's head pose in ARKit's face recognition. Here is my code, but it was not precise. fileprivate func getCurrentDirection(faceAnchor: ARFaceAnchor) -> CommandDirection?{ let transform = faceAnchor.transform let pitch = atan2(-transform.columns.2.y, transform.columns.2.z) let yaw = atan2(transform.columns.2.x, transform.columns.2.z) var direction: CommandDirection? var horizontalTurn = false if yaw > 0.5 { horizontalTurn = true direction = .right } else if yaw < -0.3 { horizontalTurn = true direction = .left } if(!horizontalTurn){ if pitch > 0.5 { direction = .down } else if pitch < -0.1 { direction = .up } } return direction } func renderer(_ renderer: SCNSceneRenderer, didUpdate node: SCNNode, for anchor: ARAnchor) { guard let faceAnchor = anchor as? ARFaceAnchor, let currentRotationDirection = getCurrentDirection(faceAnchor: faceAnchor) else { return } }
0
0
273
Jul ’23