Beginning ARKit for iPhone and iPad by Wallace Wang

Beginning ARKit for iPhone and iPad by Wallace Wang

Author:Wallace Wang
Language: eng
Format: epub
ISBN: 9781484241028
Publisher: Apress


Now we need to get the specific location that the user pinched on the screen:let location = sender.location(in: areaPinched)

Finally, we need to use the hitTest method to determine if the user touched the virtual plane: let hitTestResults = sceneView.hitTest(location, options: nil)

if let hitTest = hitTestResults.first {

}

If the user touched the first node in the augmented reality view (the plane is the only node), then we can identify the hitTest node with an arbitrary name such as: if let hitTest = hitTestResults.first {

let plane = hitTest.node

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.