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 should be able to slide along the world boundary #1905

Closed
st-pasha opened this issue Sep 14, 2022 · 0 comments · Fixed by #2307
Closed

Camera should be able to slide along the world boundary #1905

st-pasha opened this issue Sep 14, 2022 · 0 comments · Fixed by #2307
Assignees

Comments

@st-pasha
Copy link
Contributor

st-pasha commented Sep 14, 2022

What could be improved

As discussed in #1902, whenever the target moves outside of camera bounds, the camera would "stick" to the boundary and remain there until the target moves back into the allowed region. A more natural behavior would be for the camera to "slide" along the camera boundary, so that it always remains as close as possible to the target within the allowed region.

Why should this be improved

Currently it is possible for the target to leave the camera boundary, and then travel along the boundary sufficiently far away that the camera would stop seeing the target -- even if the camera can be placed closer to the target to be able to see it, while still remaining within the allowed region.

Any risks?

The implementation needs to be smart enough to allow world boundaries of arbitrary shape.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant