I set up a tapGestureRecognizer to detect taps of an object in an ARSceneKit scene. The hitTest method that I set up in the handleTap method works fine when I'm very close to the object, but when I get farther away the hitTest method always fails.
After a ridiculous amount of time fiddling with this, I finally tried turning off ARSCNDebugOptionShowFeaturePoints on my scene view. I guess the stupid little feature points were getting in the way of the hitTest method.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more