使用getWorldInfo()获取坐标后,如何转换成为我们需要的

getWorldInfo()得到的坐标不是想要的

楼主需要的是什么,最好有代码或者详细描述。。。:904:

差不多可以是下面的样子:

CCPoint touchLocation = pTouch->getLocation();
touchLocation = getParent()->convertToNodeSpace(touchLocation);
CCRect bBox = boundingBox();
return bBox.containsPoint(touchLocation);