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 anchor moves the camera off center #85

Open
NathanLovato opened this issue Jun 28, 2019 · 4 comments
Open

Camera anchor moves the camera off center #85

NathanLovato opened this issue Jun 28, 2019 · 4 comments
Labels
bug Something isn't working

Comments

@NathanLovato
Copy link
Contributor

NathanLovato commented Jun 28, 2019

This is how anchoring the camera with the CameraAnchorDetector looks

Screenshot from 2019-06-28 10-05-23

@NathanLovato NathanLovato added the bug Something isn't working label Jun 28, 2019
@guilhermehto
Copy link
Contributor

Not entirely sure on what is needed, the only time the camera was off centered in LevelTest was here:
image

Should this be prevented?

@NathanLovato
Copy link
Contributor Author

In my image above, the anchor is the purple square, it's clearly off center. You need to visualize the anchors to see that. The anchor should be in the center of the window.

@razcore-rad
Copy link

Forgot about this bug. This might be a godot bug with the camera. You know the camera has those offsets to follow the player after the player moves away from center a certain distance. This bug makes me think that those offsets don't reset when focusing on another point, I'll try some tests. The fix should be easy enough if this is it, we just have to set the offsets to 0 when the camera moves away from the player.

@razcore-rad
Copy link

@NathanLovato where can I grab the example you had in the screenshot above? You got it in some branch I can explore?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants