ARKit – How to put 3D Object on QRCode?
问题 I'm actually trying to put a 3D Object on QRCode with ARKit For that I use a AVCaptureDevice to detect a QRCode and establish the area of the QRCode that gives me a CGRect . Then, I make a hitTest on every point of the CGRect to get the average 3D coordinates like so : positionGiven = SCNVector3(0, 0, 0) for column in Int(qrZone.origin.x)...2*Int(qrZone.origin.x + qrZone.width) { for row in Int(qrZone.origin.y)...2*Int(qrZone.origin.y + qrZone.height) { for result in sceneView.hitTest(CGPoint