Math 雪碧移动到";旋转方向“;但我的精灵默认向右旋转90度

Math 雪碧移动到";旋转方向“;但我的精灵默认向右旋转90度,math,cocos2d-iphone,rotation,macos,Math,Cocos2d Iphone,Rotation,Macos,我有一个雪碧。我把它移到它面对的方向 我用记号法移动它们 -(void)tick:(ccTime)dt { for (CCBullet *bullet in bullets) { float angle = CC_DEGREES_TO_RADIANS(bullet.rotation+90); bullet.position = ccp(bullet.position.x+sin(angle) * bullet.speed, bullet.position.y

我有一个雪碧。我把它移到它面对的方向

我用记号法移动它们

-(void)tick:(ccTime)dt {
    for (CCBullet *bullet in bullets) {

    float angle  = CC_DEGREES_TO_RADIANS(bullet.rotation+90);

        bullet.position = ccp(bullet.position.x+sin(angle) * bullet.speed, bullet.position.y+cos(angle) * bullet.speed);
    }
}
如果旋转为0,则我的精灵将面向右侧。所以子弹应该向右移动。。 但它向上移动

我不想旋转图像文件。还有别的选择吗

编辑:已解决。编辑代码