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

Smooth(er) zooming (#743) #1914

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

MangkorN
Copy link

@MangkorN MangkorN commented Oct 10, 2023

  • Add QuadTreeSmoothCameraMovement example script, similar to the QuadTreeCameraMovement script, but offers smooth panning.

  • Add SmoothZoomableMap example scene, similar to the ZoomableMap scene, but uses QuadTreeSmoothCameraMovement instead of QuadTreeCameraMovement.

Related issue

Implements #743.

Description of changes

Added QuadTreeSmoothCameraMovement.cs example script and SmoothZoomableMap.unity example scene as alternatives to the default QuadTreeCameraMovement.cs and ZoomableMap.unity example assets.

The added script offers smooth panning like when using Mapbox Studio.

Smooth movement in action (recorded using the Unity Recorder):

smoothmovement.mp4

QA checklists

  • added relevant code comments
  • does not modify any previous scripts (changes only include additional features to the SDK)
  • coding convention followed

Reviewers

@wilhelmberg @brnkhy

* Add QuadTreeSmoothCameraMovement example script, similar to the QuadTreeCameraMovement script, but offers smooth panning.

* Add SmoothZoomableMap example scene, similar to the ZoomableMap scene, but uses QuadTreeSmoothCameraMovement instead of QuadTreeCameraMovement.
@MangkorN MangkorN marked this pull request as draft October 11, 2023 18:48
@MangkorN MangkorN marked this pull request as ready for review October 11, 2023 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants