Created
August 26, 2017 00:50
-
-
Save chriswebb09/d8293c84eff7c61c4e4267a0fb39dc8a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ViewController: UIViewController, ARSCNViewDelegate, ARSessionDelegate { | |
@IBOutlet weak var sceneView: ARSCNView! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
} | |
func run() { | |
let configuration = ARWorldTrackingConfiguration() | |
configuration.worldAlignment = .gravityAndHeading | |
sceneView.session.delegate = self | |
sceneView.session.run(configuration) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment