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

Camera 2D should (optionally) rotate with the follow target #341

Open
nanodeath opened this issue Jun 27, 2024 · 2 comments
Open

Camera 2D should (optionally) rotate with the follow target #341

nanodeath opened this issue Jun 27, 2024 · 2 comments
Labels
2D Issues concerning 2D scenes enhancement New feature or request phantom camera Related to PhantomCamera nodes

Comments

@nanodeath
Copy link

Project Type

2D

Feature Description

When a PhantomCamera2D is in Follow Mode Glued or Simple, the camera should, in some cases, also match the global rotation of the follow target.

Use Cases

One example would be a top-down racing game. Assuming the world is static and the car is the object moving around (and the camera is following the car), I may want the car to remain fixed in the middle of the viewport pointing up. The current behavior is that "up" (-Y) is always at the top of the screen.

(Optional) Proposed Solution

From a user perspective, I'd like to see a checkbox in the main section for enabling rotation matching. Conceivably there could also be some kind of damping specifically for rotation, but it could be nauseating so I'd personally turn that feature off.

This may be related to #214.

@nanodeath
Copy link
Author

Also...I'm not sure what ramifications a rotated follow target would be for Limits. Maybe the only option would be to set a Limit Target.

@ramokz
Copy link
Owner

ramokz commented Jun 27, 2024

Think this is a good idea.

Should be fairly easy to add in.

@ramokz ramokz added enhancement New feature or request phantom camera Related to PhantomCamera nodes 2D Issues concerning 2D scenes labels Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2D Issues concerning 2D scenes enhancement New feature or request phantom camera Related to PhantomCamera nodes
Projects
None yet
Development

No branches or pull requests

2 participants