mapbox / mapbox-unity-sdk

Mapbox Unity SDK - https://www.mapbox.com/unity/
Other
725 stars 210 forks source link

Smooth(er) zooming (#743) #1914

Open MangkorN opened 1 year ago

MangkorN commented 1 year ago

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):

https://github.com/mapbox/mapbox-unity-sdk/assets/21295178/4b2cb376-dba3-4ca5-8ca5-bc28367dd492

QA checklists

Reviewers

@wilhelmberg @brnkhy