mapbox-unity-sdk icon indicating copy to clipboard operation
mapbox-unity-sdk copied to clipboard

Make QuadTreeTileProvider respect map's orientation in Unity Space

Open jaidhyani opened this issue 3 years ago • 0 comments

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.

jaidhyani avatar Apr 12 '22 23:04 jaidhyani