Add reset_rotation_smoothing method to Camera2D #10056
farfind-gpt
started this conversation in
2D
Replies: 1 comment 6 replies
-
Out of curiosity, what do you need to reset 2D camera rotation smoothing for (but not position at the same time)? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone. While I was developing my game, I ran into a small problem: I needed to reset 2D camera rotation smoothing. I was looking for a method like the
reset_smoothing
but for rotation and didn't find it. After some time I found a solution:But I think it is better to have some method to do it directly, so I tried to add that method. And it seems like it works.
I think it also may be useful for other developers, but I'm not sure. I'm also not sure I made it best way.
So should I open a PR to Godot repository? Is it a good implementation of my idea or should I do it other way? Is it even a good idea or will this method be useless for most developers?
Update: a PR was opened.
Beta Was this translation helpful? Give feedback.
All reactions