-
-
Notifications
You must be signed in to change notification settings - Fork 899
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
Labels
Comments
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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;
The text was updated successfully, but these errors were encountered: