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

Dynamic Camera suddenly slows a lot when going down #444

Open
ThomasBillaud2 opened this issue Mar 22, 2024 · 0 comments
Open

Dynamic Camera suddenly slows a lot when going down #444

ThomasBillaud2 opened this issue Mar 22, 2024 · 0 comments

Comments

@ThomasBillaud2
Copy link

I have noticed that when moving down the dynamic camera (by pressing Q or C), it sometimes slow down a lot, so much it seems like the entire camera froze.
I can still rotate the camera with the mouse when this happens.
Also, I've noticed it only happens when I'm going down directly. If I move (with WASD) while going down, the speed works just fine.

I managed to fix it by moving the input handling function call from FixedUpdate to Update and changing every use of Time.fixedDeltaTime with regular Time.deltaTime.

Making this change also allowed to fix another issue where some inputs like the scroll wheel were not always cought by the code.

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

No branches or pull requests

1 participant