-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
A rotating Camera2D #11
Merged
godotengine
merged 2 commits into
godotengine:master
from
rafalcieslak:rotating-camera2d
Feb 13, 2014
Merged
A rotating Camera2D #11
godotengine
merged 2 commits into
godotengine:master
from
rafalcieslak:rotating-camera2d
Feb 13, 2014
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Jan 16, 2015
Closed
hungrymonkey
referenced
this pull request
in hungrymonkey/godot
Sep 30, 2017
hungrymonkey
referenced
this pull request
in hungrymonkey/godot
Sep 30, 2017
This was referenced Oct 4, 2017
luiscla27
added a commit
to luiscla27/godot
that referenced
this pull request
Dec 30, 2020
lawnjelly
added a commit
to lawnjelly/godot
that referenced
this pull request
Mar 30, 2023
Fix audio mute state in running projects
YeldhamDev
pushed a commit
to YeldhamDev/godot
that referenced
this pull request
Jul 21, 2023
Allow rendering of 3d content at lower resolution
prfiredragon
pushed a commit
to prfiredragon/godot
that referenced
this pull request
Oct 9, 2024
Rename vsproj solution generated by scons
Norrox
added a commit
to godot-experimental/godot
that referenced
this pull request
Dec 1, 2024
Game window update2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These changes add a new Camera2D.Rotating property. By default this setting is off, and such default behaviour is exactly the same as before these changes.
When on, the camera will follow it's global rotation, so that one can change its orientation if desired.
In some cases rotating the camera makes not much sense, for example when it is a child of a movable character in a side-scrolling platform game - it should follow that character, but never rotate, so that game's top is always camera's top.
However, there is a number of cases when we would like to rotate the view.
The way I have implemented this feature makes it fully compatible with other camera properties, including Camera2D.Centered, Camera2D.Zoom, Camera2D.Offset, drag margin, etc.
It does not break existing scenes, as it is an optional feature that is turned off by default.
I have tested it in a number of different use cases [following cam, dragged cam, static camera, multiple cameras and animated camera movement], with desired results, but if you notice anything wrong, I will be happy to fix it.