x


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

more ▼

asked Apr 27 '11 at 08:07 AM

kheN gravatar image

kheN
2 2 2 2

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?

Apr 27 '11 at 09:53 AM Cyb3rManiak

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)

Jul 29 '11 at 11:53 AM toby
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered Jul 29 '11 at 01:49 PM

Peter G gravatar image

Peter G
15.1k 16 44 137

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x423
x170
x27

asked: Apr 27 '11 at 08:07 AM

Seen: 1195 times

Last Updated: Jul 29 '11 at 01:49 PM