Hello, maybe an expert can help me out.
I am trying to get DOLookAt to work in 2D, I tried a bunch of combinations but cannot get it to work. I have a gun turret in a top down shooter type game and it is placed at the very bottom of the screen. There is gun barrel on the turret pointing to the top of the screen. When the user clicks on the screen I would like the turret to rotate on the Z axis and point towards where the user clicked, so it looks like the gun will shoot in that direction. I am using the transform for the rotation, there no rigidbody attached to the object, not sure if that matters.
I am not sure which parameter values to enter to get this to work, the constraints seem to work on all but the Z axis which is messing up a 2D view. I have attached an example of what the screen looks like and drew the x axis and y axis.