-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Camera2D.get_camera_screen_center()
does not return desired position
#61318
Comments
Related to #44358. @ron0studios Please upload a minimal reproduction project to make this easier to troubleshoot. |
Camera2D.get_camera_screen_center()
does not return desired position
Closing due to lack of response, if you provide the requested information this can be reopened |
Can confirm this still happens in |
@rnoriega31 Could you upload a minimal reproduction project? Thanks in advance 🙂 |
Closing due to lack of response, if you provide the requested information this can be reopened |
Godot version
3.4.4-stable
System information
Arch linux
Issue description
When using the function get_camera_screen_center() to fetch the position of a camera, with limits and drag margins applied,m the function always returns (0,0) regardless of where the camera is positioned. I am trying to implement a camera-to-camera transition system.
The camera has set limits, but no smoothing or enabled drag margin
However, here's the weird part that got me to write this issue in the first place, once I set the camera to be current, the get_camera_screen_center() DOES return the correct value. Is this something to do with the camera not adjusting itself beforehand?
Steps to reproduce
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: