Created
May 21, 2018 19:05
-
-
Save azamsharp/68a1b218c3e476f2fa2d6590acddd682 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
private func addAnchorWithTransform(transform :matrix_float4x4) { | |
self.arAnchor = ARAnchor(transform: transform) | |
self.sceneView.session.add(anchor: self.arAnchor) | |
// host the anchor | |
self.garAnchor = try! self.gSession.hostCloudAnchor(self.arAnchor) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment