void ConvertToNode::ccTouchesended(CCSet* touches, CCEvent *event) { for( CCSetIterator it = touches->begin(); it != touches->end(); ++it) { CCTouch* touch = (CCTouch*)(*it); CCPoint location = touch->getLocation(); for( int i = 0; i < 3; i++) { CCNode *node = getChildByTag(100+i); CCPoint p1, p2; p1 = node->convertToNodeSpaceAR(location); p2 = node->convertToNodeSpace(location); CCLOG("AR: x=%.2f, y=%.2f -- Not AR: x=%.2f, y=%.2f", p1.x, p1.y, p2.x, p2.y); } } }