Skip to content

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