Walking

Hi all,

I am new to Unity and all this stuff, but I am fascinated with all the program. I am building my new game and I came to the point, where I have a problem to define enemies moving. Let me explain what I have in mind:

Let say I have a field, like a workshop. 30 by 20 size. There are some cubes imitating walls or pillars. I create 3 enemies. Let say they are just spheres. There are in some distance from each other. The camera view is from above, so we actually see everything from the top view, and my plan is to make those spheres move in any directions but in line paths. So let say one sphere is moving from left to right. And in a middle it meets a pillar so sphere stops next to it and now it checks directions. By random choice chooses one direction and moves on to the next point which will stop it. If one sphere meets another on the way it stops and choose again random direction to go. So another word… only walls can limit movement of those spheres. They can bounce from each other or follow each other if random choice of the path will become the same as the other sphere… ect.

I hope I explained it clear enough. My question is: do I need to write it all my self or there is plugin or program which does it?

Thank You for patience, and I am sorry if I put this message into wrong topic.
Tomasz Ostrowski

Btw, adding to above message, by mean line paths it can be both directions horizontal or vertical (in top view: like moving in “x” or “y” directions. Hope now it is more clearer.

Look at the free pathfinding library from http://www.arongranberg.com/

Thx Melt, it is almost what i need :stuck_out_tongue: I might write it or ask somebody to write it for me if I will find it to difficult to do it :wink:
Thx anyway