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

Godot 4 beta11: Camera2D not synchronized with player when it's process callback is set to Physics. #71226

Open
Tracked by #86837
Marigem opened this issue Jan 11, 2023 · 3 comments

Comments

@Marigem
Copy link

Marigem commented Jan 11, 2023

Godot version

Godot 4 beta11

System information

Windows10

Issue description

Camera doesn't properly follow player when process mode is set to physics.

2023-01-11.16-12-45.mp4

Steps to reproduce

Create character with camera attached to it (Or with RemoteTransform2d). Change camera process callback to physics and move the character.

Minimal reproduction project

gdcamtest-mrp.zip

@kleonc kleonc added this to the 4.0 milestone Jan 23, 2023
@kleonc
Copy link
Member

kleonc commented Jan 23, 2023

Likely will be fixed by #63773.

Hacky workaround: add $Camera2D.force_update_scroll() at the end of the CharacterBody's _physics_process.

@danielah05
Copy link

tested this on the currently latest (beta 16) release and it seems like the problem has gotten worse. using the camera process callback "idle" also has this issue now. hope this gets fixed soon.

@markdibarry
Copy link
Contributor

Funny thing I found was that things set to follow the camera also lags when set to idle, but not physics. Here's a pink ColorRect overlay that follows the camera to show the problem better: notice the edges of the screen.

2023-10-12.21-02-49.mp4

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

No branches or pull requests

5 participants