Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/43.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios SCeneKit处理三维模型每个部分上的点击手势_Ios_Iphone_Scenekit - Fatal编程技术网

Ios SCeneKit处理三维模型每个部分上的点击手势

Ios SCeneKit处理三维模型每个部分上的点击手势,ios,iphone,scenekit,Ios,Iphone,Scenekit,当我像这样加载节点时 SCNScene *scene = [SCNScene sceneNamed:@"art.scnassets/ship.dae"]; 我怎样才能控制机翼上的水龙头以及我想要的计划的每一部分?因为处理点击手势只允许我获取节点 // add a tap gesture recognizer UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self actio

当我像这样加载节点时

SCNScene *scene = [SCNScene sceneNamed:@"art.scnassets/ship.dae"];
我怎样才能控制机翼上的水龙头以及我想要的计划的每一部分?因为处理点击手势只允许我获取节点

// add a tap gesture recognizer
UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTap:)];
NSMutableArray *gestureRecognizers = [NSMutableArray array];
[gestureRecognizers addObject:tapGesture];
[gestureRecognizers addObjectsFromArray:scnView.gestureRecognizers];
scnView.gestureRecognizers = gestureRecognizers;
我想在模型的每个部分都添加点击手势,我该怎么做