Skip to content

Instantly share code, notes, and snippets.

@azamsharp
Created May 21, 2018 19:05
Show Gist options
  • Save azamsharp/68a1b218c3e476f2fa2d6590acddd682 to your computer and use it in GitHub Desktop.
Save azamsharp/68a1b218c3e476f2fa2d6590acddd682 to your computer and use it in GitHub Desktop.
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