标签:des os io sp on new c bs tt
Point point1 = sprite1->convertToNodeSpace(sprite2->getPosition());
绝对坐标转相对坐标
newP2 = (p2.x-p1.x, p2.y-p1.y)
Point point2 = sprite1->convertToWorldSpace(sprite2->getPosition());
相对坐标转绝对坐标
newP2 = (p2.x+p1.x, p2.y+p1.y)
标签:des os io sp on new c bs tt
原文地址:http://www.cnblogs.com/zhangfp/p/3946433.html