I am trying to rotate my pawn to face my mouse by rotating the Z-axis. I thought I would be able to do this by using ArcTan2 to calculate the degrees. Here is what my script looks like so far:
However, my pawn is only able to rotate around 180 degrees, and my pawn isn’t looking at my mouse most of the time. Can anyone help me better understand how to calculate the correct angle, or can someone show me a better way to handle this issue?