I am trying to make a top down shooter where the player faces the mouse cursor.
while searching on net i found look_at() suitable for rotation but when I apply it to my script it doesn't work as desired.
The code is-
The code is in physicsprocess(delta).
Video showing error