Topic was automatically imported from the old Question2Answer platform.
Asked By
gm130993
I’m trying to make a bullet hell game and i need a gun to rotate based on the mouse position and flip when it’s rotation is between 90° and 270°, however i’m currently facing two problems:
first, i can’t get the gun to flip based on the rotation and it is rotating from the middle instead of having the grip as the center for the rotation
how can i solve these problems?
note: idk if this changes anything but the gun is a child node of the player