mapbox / mapbox-unity-sdk

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

Make QuadTreeTileProvider respect map's orientation in Unity Space #1865

Open jaidhyani opened 2 years ago

jaidhyani commented 2 years ago

Right now the camera-bounded tile provider sets the ground plane as new Plane(Vector3.up, 0), regardless of the actual orientation of the map object. This results in nothing rendering if the map GameObject has been rotated. This can be fixed by instead defining the plane by taking three arbitrary points on the map and finding their corresponding point in Unity space, and using these points to define the ground plane.