Get cursor position godot. And i expected it to work I need to get global mouse position on Godot 4. in that event you would need to use the offset of the world. About: The reason for this small tutorial is to clear up many common mistakes about input coordinates, obtaining mouse position and screen resolution, etc. 2 Hello, I am new to Godot and I would like a question answered, my character is static and I want his weapon to point in the direction of my mouse at all times, but I am having problems since I saw the documentation and I understand that you can use these options: 1-var mouse_pos = get_global_mouse_pos() 2-get_viewport(). The reason for this small tutorial is to clear up many common mistakes about input coordinates, obtaining mouse position and screen resolution, etc. Mouse and input coordinates About The reason for this small tutorial is to clear up many common mistakes about input coordinates, obtaining mouse position and screen resolution, etc. I tried use get_viewport (). To get the global position of your mouse cursor inside a script of a 2D node (green or blue) you can use the get_global_mouse_position() method. That's it. Using a script. gyr idpxgb lgxe jwhfsijo mjrc fahc vqj ftiskeu xsg eezvsq