Created
May 21, 2018 19:03
-
-
Save azamsharp/4dd7d235b2168a5f17747b7440d4ae0f 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 hitTestWithPlane(touch :CGPoint) { | |
let hitTestResults = sceneView.hitTest(touch, types: .existingPlane) | |
if !hitTestResults.isEmpty { | |
if let hitTestResult = hitTestResults.first { | |
print("plane hit test") | |
print(hitTestResult.worldTransform) | |
addAnchorWithTransform(transform: hitTestResult.worldTransform) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment