-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Reverse Camera2D.rotating
to ignore_rotation
#64359
Conversation
What does this property do anyway and how do I use it? The description does not really help. From this description I would assume this property locks the Camera2D onto a target and makes sure the Camera2D rotation follows the target. But there is no property to set a target. If this would be a method instead and would take a target argument, I would also better understand, but that's not the case here either. So all in all I don't see how |
I was considering overhauling Camera2D's descriptions (again) and names in general because they honestly feel misleading. Indeed, there's no such thing as a "camera target" because Camera2D merely inherits its transform from its parent, like any other Node2D. Renaming the property is a step in the right direction, as should be possibly renaming its other properties as well. In this PR #55699 the explanations were heavily limited by how badly named some properties are, as well as how they've been previously described. There's no consistency now. |
You could update the description in this PR, to make it more complete. |
9dd0c5d
to
f1a2bb8
Compare
Updated this specific description to be more explicit, too. Tell me what you may think. |
Yeah that's a lot better! Thanks! |
On second thought, maybe also add |
There is no |
How about |
During the meeting it was agreed that this definitely needs a rename, but we couldn't agree on anything. Suggestions and discussion are welcome. |
What if instead we reverse the property and call it |
That sounds great to me! It could also be called |
I was going to push the rename, but I realised that all other Camera2D have "enabled" booleans, instead. But at the same time, |
f1a2bb8
to
7260807
Compare
rotating
to rotating_view
rotating
to ignore_rotation
The PR has been refactored. This PR reverses the boolean outright, and makes it clearer the Camera2D's view ignores its own |
7260807
to
09f24da
Compare
This comment was marked as duplicate.
This comment was marked as duplicate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok, but I didn't test the converter code.
I am unable to test the converter code, but if given instructions on how to I could give it a try. I know right off the bat that it cannot be perfect on every situation, but fortunately, |
`rotating` is misleading, as Camera2D is affected by `rotation` and `global_rotation` like any other Node2D Updates description in the docs, as well.
09f24da
to
ee16de5
Compare
Thanks! |
Reminder that this is worth accentuating with big caps someday because it's not just a simple rename this time around. |
As partially brought up in #54161 (comment).
rotating
is misleading, as Camera2D is affected byrotation
andglobal_rotation
like any other Node2D.This PR reverses the boolean outright, and makes it clearer the Camera2D's view ignores its own
rotation
when it is now enabled.This PR has been refactored. It used to simply rename.rotating
torotating_view