hit-test in Arkit using Metal for rendering

Hi There.

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.

Thanks

Replies

All seem to be covered in this series of articles via metalkit.org:


h ttp://metalkit.org/2017/08/31/using-arkit-with-metal-part-2.html


...note the hit-testing/plane detection demo at the end.