GPS Navigation Directions? (3D)
Posted: Mon Jan 19, 2015 3:29 pm
Hey guys,
today I've come with a sort of "problem". Do you know those A* pathfindings? Yeah they work pretty well, but how can you make a GPS Navigation in a game (3d) from point A and B?
My "programmer brain" tried a bit, and came to the hypothesis of a hashmap with keys being the origin and destination, then there would be every single possibility of paths from every waypoints.
Imagine the following: you have a house with a corridor (you are on the corridor), and you have 4 rooms, 2 in each corridor side. If you want to go to the furthest room it will check that hashmap with the current position you are (or the last checkpoint) and see where it matches the furthest room waypoint, and enable the "direction path" objects on the way...
Is this any good? How would you do it?
today I've come with a sort of "problem". Do you know those A* pathfindings? Yeah they work pretty well, but how can you make a GPS Navigation in a game (3d) from point A and B?
My "programmer brain" tried a bit, and came to the hypothesis of a hashmap with keys being the origin and destination, then there would be every single possibility of paths from every waypoints.
Imagine the following: you have a house with a corridor (you are on the corridor), and you have 4 rooms, 2 in each corridor side. If you want to go to the furthest room it will check that hashmap with the current position you are (or the last checkpoint) and see where it matches the furthest room waypoint, and enable the "direction path" objects on the way...
Is this any good? How would you do it?