- Home /
Waypoint System, Creating a path through destination point..
can anyone help me how to develop a car game we're you have a GPS system where you can go to your destination point by guiding you by an arrow that is placed on the top most part of your screen like need for speed? Do anyone know about that? Help me please
How well are you familiar with Unity?... What you're describing is not exactly difficult, but not basic stuff either. it's a too big of a question to tackle with a simple answer. Try using the tutorials and the docs to start and if you get stuck ask specific questions. If you want I could break it down for you to smaller tasks you'll need to develop. What have you done so far?
i think should probably related with :
"function OnControllerColliderHit (hit : ControllerColliderHit)"
-when the car enter a specific road it will bulk up an interactive arrow (arrow u can create by ur own)
Answer by Peter G · Jul 29, 2011 at 01:49 PM
That sounds like you need a basic pathfinding algorithm. You could make an A* implementation then have the grid be as large as a city-block for optimal performance since you aren't really following the path, you just need the arrow to point at the next node.
As far as finding an algorithm, there are plenty of pathfinding algorithms that already are built for Unity. Search the Asset Store to find plenty. You will likely have to modify it some to spit out the next node to your arrow rather than a pre-built path, but it shouldn't be to hard.
Your answer
![](https://koobas.hobune.stream/wayback/20220613125636im_/https://answers.unity.com/themes/thub/images/avi.jpg)