Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | doums |
Hi all!
I’m currently stuck on a little problem. My project is a 2D game, isometric tile map. I let you a screen to show you the global structure and the relevant code:
In the script of my player’s node I use this code to calculate the angle to rotate the player facing the mouse cursor:
var rot = get_angle_to(get_viewport().get_mouse_position())
The problem is, as soon as I add a Camera2D as child to the player’s node, this angle become wrong.
How I can fix this ?