I’m trying to make the gun follow and look at the mouse in 2D. So I calculate the angle between the mouse position and front direction of the gun.
What is then the proper way to then rotate the gun based upon the angle?
EDIT: so that little stick needs to be aligned with the red ray.
This is why I cant use lookAt. The gun flips:
Thanks.