Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rotated 2D movement gizmo #81735

Merged
merged 1 commit into from
Sep 16, 2023
Merged

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Sep 16, 2023

Fixes #62732

I noticed that move tools has a weird logic where it resets the node's position and then moves it as a delta of initial position + delta. Well, the reset part allowed me to use get_local_mouse_position(), which made it trivial to fix the rotated behavior 🤷‍♂️

KLVGeZcU7s.mp4

@akien-mga akien-mga merged commit ba54c34 into godotengine:master Sep 16, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2D movement gizmos always work in global coordinates despite being rotated
3 participants