i have a top-down player and i added a weapon that looks at the mouse but when i added a camera2D that follows the player, the weapon just looks toward (0,0) i think.
i tried
look_at(get_viewport().get_mouse_position())
look_at(get_global_mouse_position())
look_at(get_local_mouse_position())
I found the solution: look_at(get_global_mouse_position() - global_position.normalized())