Apologies for the long title. What I want to do is to be able to spawn a bullet to the left or right of the centre of an object, the player, which can turn in a full 360 degrees to the left and right. At the moment I am using x = hypotenuse * cos(player angle) and y = hypotenuse * sin(player angle). This works very strangely with it working while pointing upwards, with the bullet spawning on the right as intended, but as soon as it is angled downwards it starts spawning on the left.
I have some teacher and we have done some playing around, however they have not been able to help too much as of yet.
Ok guys, I am sorry, it turns out that I was giving the math.cosfunction degrees as opposed to radians. I did try giving it radians earlier, however for some reason it didn't work.
Making an object spawn to the left or right relative to another angled object