So I have asked this before and I got it working correctly on mac. But now that I have put this on my windows machine I am having some issues. What I am trying to do is have the bullet move in the angle it is set to.
int radion = laserList[i].getRotation() * 3.14159265 / 180;
float movementX = cos(radion) * 30.0f;
float movementY = sin(radion) * 30.0f;
laserList[i].move(movementX, movementY);
As my angle is straight up at 0 degree it moves the bullets directly to the right. If I have the sprite facing down (180 degree) the bullets shoot directly to the left.
Doesn't seem to make much sense. ???
Thanks for the feedback and the help on the issue I was getting.
I did get the problem fixed by adding -90 degrees when getting the rotation of the sprite to offset it to the correct location.
float radion = (laserList[i].getRotation() - 90) * 3.14159265 / 180;
Thanks again guys!