auto vector = location - _sprite-> getPosition();
auto radians = atan2f(vector. y,vector. x);
auto rotateDegree = CC_RADIANS_TO_DEGREES(radians);
原文链接:https://www.f2er.com/cocos2dx/346919.htmlauto rotateDegree = CC_RADIANS_TO_DEGREES(radians);
原文链接:https://www.f2er.com/cocos2dx/346919.html