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

Сircle camera movement boundaries #812

Closed
QiXi opened this issue May 22, 2021 · 0 comments · Fixed by #1605
Closed

Сircle camera movement boundaries #812

QiXi opened this issue May 22, 2021 · 0 comments · Fixed by #1605

Comments

@QiXi
Copy link

QiXi commented May 22, 2021

What could be improved

Add a circle bounding area to the camera

Why should this be improved

The circular map is popular in 2D top view games.

More information

or to do so to simplify this work

reference
If set, this determines boundaries for the camera movement. The camera will never move such that a region outside the world boundaries is shown, meaning it will stop following when the object gets close to the edges. Changing this value can immediately snap the camera if it is a wrong position, but other than that it's just prevent movement so should not add any non-smooth movement.
Rect? worldBounds;

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