x


Pathfinding unity

hey,

i want to implement a basic pathfinding system in my game. But i was wondering how to create a grid for the enemy to walk on. It can either be a grid(square) or a navmesh but i can't seem to find anywhere how to create them myself.

i've checked the A*pathfinding and angry ant but in both of them you just press some button and the grid gets created, i can't find the code that actualy does create the grid.

so could any1 tell me how to create a grid/navmesh.

thx

more ▼

asked Apr 26 '11 at 01:37 PM

ruben gravatar image

ruben
11 1 1 2

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

3 answers: sort voted first

Check out this tutorial for a quick start with using Navigation meshes with unity 3,5

http://www.youtube.com/watch?v=TD11AzSQ0Ao

more ▼

answered Feb 16 '12 at 11:15 AM

SriramGanesh gravatar image

SriramGanesh
31

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

Unity 3.5 beta has a complete NavMesh solution for you that can bake the navMesh and then have NavMeshAgents evolving around your mesh.

more ▼

answered Jan 05 '12 at 03:05 PM

Jean Fabre gravatar image

Jean Fabre
3.1k 68 74 103

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

I made a quick tutorial for those interested in learning how to setup a basic AI pathfinding using NavMeshes in unity 3.5

http://www.youtube.com/watch?v=TD11AzSQ0Ao

more ▼

answered Feb 16 '12 at 03:42 PM

SriramGanesh gravatar image

SriramGanesh
31

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

x957
x268
x251
x137
x42

asked: Apr 26 '11 at 01:37 PM

Seen: 4428 times

Last Updated: Feb 16 '12 at 03:42 PM