Hello guys!
I would like to know some ideas on how to implement a GPS on a minimap.
I can make a minimap using NGUI, or camera from top.
My roads are made by meshes…
Here is what I would like:
Thanks
Hello guys!
I would like to know some ideas on how to implement a GPS on a minimap.
I can make a minimap using NGUI, or camera from top.
My roads are made by meshes…
Here is what I would like:
Thanks
One way would be to create simplified versions of your roads in the scene and put them onto a different layer. Then have a different camera that only renders that layer to your little minimap.
Karl
I am able to do that. But the GPS/Navigation system is a bit harder to implement. Any ideas, paid scripts?
I want it to tell me how to go from where I am to another point on the roads.
That should be fairly simple, just a standard path finding system.
If you want to customize things a bit more such as adding one way streets then add them using mesh links and set the direction as one way.
The unity navigation system should work for you if you have pro, if not the asset store has plenty of path systems.
Just set the destination in the navmesh agent and then extract the generated path which you can then display.
Some other thoughts:
-Place particular roads onto layers such as Motorway, country road etc. You can then use this in your GPS system to select options such as ignore motorways.
-Apply weights to your links so certain roads are favoured, e.g motorways over small roads etc.
Karl
You might want to try this: Unity Asset Store - The Best Assets for Game Making
(demo video) http://forum.unity3d.com/threads/213631-MapNav-Google-Maps-Navigation-Toolkit-RELEASED
I hope it helps!
Cheers