Created
June 10, 2018 14:12
-
-
Save oliver-dew/33e7694118c5dc4fa930b1ed806a5622 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
override func viewWillAppear(_ animated: Bool) { | |
super.viewWillAppear(animated) | |
startTracking() | |
} | |
private func startTracking() { | |
sceneView.debugOptions = [ARSCNDebugOptions.showFeaturePoints] | |
let configuration = ARWorldTrackingConfiguration() | |
configuration.planeDetection = [.vertical, .horizontal] | |
sceneView.session.run(configuration, options: [.resetTracking, .removeExistingAnchors]) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment