Guest User

https://stackoverflow.com/questions/57582930/why-does-arface

a guest
Aug 23rd, 2019
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.47 KB | None | 0 0
  1. import UIKit
  2. import SceneKit
  3. import ARKit
  4.  
  5. class ViewController: UIViewController {
  6.  
  7.     @IBOutlet var sceneView: ARSCNView!
  8.    
  9.     override func viewDidLoad() {
  10.         super.viewDidLoad()
  11.  
  12.         sceneView.debugOptions = [.showWorldOrigin]
  13.         sceneView.scene = SCNScene()
  14.        
  15.         let configuration = ARFaceTrackingConfiguration()
  16.         configuration.worldAlignment = .camera
  17.        
  18.         sceneView.session.run(configuration)
  19.     }
  20. }
Add Comment
Please, Sign In to add comment