-
Notifications
You must be signed in to change notification settings - Fork 19
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
No world_to_window function #63
Comments
No., I think you are correct. There is no equivalent of world_to_window(). Please open a PR! |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We were using world_to_screen() to convert world coordinates to gui position to spawn some gui particles, but it wasn't working correctly after window resize, even if we used the adust mode.
I noticed that there were window_to_world() and screen_to_world() functions, and screen_to_world() exists but not world_to_window()
I wrote something below which works perfectly for our purpose, but before I open a PR - am I misunderstanding something, and this could have been achieved with existing functionality?
The text was updated successfully, but these errors were encountered: