x


create shortest AI path from/to object.

Hey, I know how to make an object move to a waypoint, and after that another, but how do I get it make its own route through the waypoints to a goal in Javascript?

more ▼

asked Jan 25, 2011 at 09:06 AM

Jason Hamilton gravatar image

Jason Hamilton
485 194 148 152

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

If you have waypoint nodes in your level you can use the A* algorithm A* (wikipedia) If you're not a programmer you should search if someone already wrote an A*-algorithm for Unity or try it yourself.

A* works for almost every pathfinding problem in 2D tiled maps or in 3D maps with nodes. good luck

more ▼

answered Jan 25, 2011 at 09:56 AM

Bunny83 gravatar image

Bunny83
83.2k 29 133 404

(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:

x9396
x6400
x1402
x241
x8

asked: Jan 25, 2011 at 09:06 AM

Seen: 2490 times

Last Updated: Jan 25, 2011 at 09:06 AM