与kexinmei共同完成此文章
void RotateWithAction::step( float dt )
{
CCPoint prePos=pInnerTarget->getPosition();
pInnerAction->step(dt);
CCPoint curPos=pInnerTarget->getPosition();
float degree=atan2((curPos.x-prePos.x),(curPos.y-prePos.y));
degree=degree/3.14159f*180;
pInnerTarget->setRotation(degree);
}