I'm using Metal to render Arkit and I would like to interact with 3d objects in Arkit. But I don't know how to simulate a hit-test functionality like SceneKit or SpriteKit view. Someone could show me how to achieve that by using either hit-test or collision detection in Metal.
All seem to be covered in this series of articles via metalkit.org:
...note the hit-testing/plane detection demo at the end.