Hey, I'm making a topdown shooter and i wanted to make the gun that rotates around the player flip when it's rotated to the left. I basically checked if its rotation was between PI/2 and -PI/2 but this doesn't work. It only flips when its on the topleft of the player.
here"s my code:
flip_v = PI/2 > pivotrotation and pivotrotation < -PI/2