Scenekit detecting User tapped object

后端 未结 3 770
遥遥无期
遥遥无期 2021-01-15 02:53

I recently started using scenekit for scenekit in iOS 8. I am facing difficulty in detecting whether the user has tapped or pressed on the object. Is there any way to do tha

3条回答
  •  情歌与酒
    2021-01-15 03:41

    See the documentation for the hitTest method. Call that from wherever you're handling touch events to get a list of 3D scene objects/locations "under" a 2D screen point.

提交回复
热议问题