我想获得触摸点的本地坐标不知道怎么转换 求大家帮忙
void MapScene::ccTouchesEnded(CCSet* touches, CCEvent* event)
{
CCTouch* touch = (CCTouch*)touches->anyObject();
// 获得我们点击的坐标点
CCPoint location = touch->getLocationInView();
}
我想获得本地坐标拿来计算角度
请我怎么获得本地坐标?
我想获得触摸点的本地坐标不知道怎么转换 求大家帮忙
void MapScene::ccTouchesEnded(CCSet* touches, CCEvent* event)
{
CCTouch* touch = (CCTouch*)touches->anyObject();
// 获得我们点击的坐标点
CCPoint location = touch->getLocationInView();
}
我想获得本地坐标拿来计算角度
请我怎么获得本地坐标?