I have created an object that moves in a circle using sf::Transform and rotate .
This takes an angle in degrees and the center coordinates which to rotate about. Would I be able to set the speed it moves at then?
I want to create a bullet that travels from the player which is on the circle to the center. The center point is defined.
How do you always set the starting point of the bullet to the ship's position?
I have tried .setposition() but doesn't work.
How do I make the bullet always shoot to the center. I have tried using vector maths, but does not seem to want to work. Debugging the program, the correct values are being assigned and calculated to the variables but on screen it's in the incorrect position.
Any help will be much appreciated. I've added some of the code here as well.