SCeneKit处理3D模型每个部分的轻击手势

时间:2015-09-09 14:22:16

标签: ios iphone scenekit

当我加载节点时

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;

我想为模型的每个部分添加点按手势,我该怎么做

0 个答案:

没有答案