Cursor moving more than necessary

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Ilinn

I’m making 3d top-down game, and I need to player look at cursor while moving.
And the question is why cursor(red dot) moving with speed more than speed of player?
there’s video Recent-questions---Godot-Engine---Q-A.webm - Google Drive

:bust_in_silhouette: Reply From: Inces

You have to show the code, man…

If it is 3D I bet You translated 2dmouse to 3d player incorrectly. Remember, that You are using Viewport in order to relate to mouse_position, so your window size will have effect on this translation. Try how it works on fullscreen.

Yeah, I didn’t calculate the mouse position correctly. Sorry for bothering and thanks for help:)

Ilinn | 2021-10-06 09:54