Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import UIKit
- import SceneKit
- import ARKit
- class ViewController: UIViewController {
- @IBOutlet var sceneView: ARSCNView!
- override func viewDidLoad() {
- super.viewDidLoad()
- sceneView.debugOptions = [.showWorldOrigin]
- sceneView.scene = SCNScene()
- let configuration = ARFaceTrackingConfiguration()
- configuration.worldAlignment = .camera
- sceneView.session.run(configuration)
- }
- }
Add Comment
Please, Sign In to add comment