Scenekit detecting User tapped object

后端 未结 3 780
遥遥无期
遥遥无期 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:45

    An easy way to get sample code that shows the hitTest in action is to create a sample app using the Game template in XCode6. Create a new project, select the "Game" template.

    The hitTest code should be there in the implementation of:

    - (void) handleTap:(UIGestureRecognizer*)gestureRecognize
    

提交回复
热议问题