Scenekit detecting User tapped object

2 Solutions Collect From Internet About “Scenekit detecting User tapped object”

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.

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