Roaming AI

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
anandh
Posts: 61
Joined: Thu Sep 14, 2006 12:40 pm
Contact:

Roaming AI

Post by anandh »

Hi all,
I have tried simple AI using waypoint. Stored my world data (It have 7 rooms) in a map (2d array), which holds pre-calculated path to travel from one room to other. I have successfully completed the demo.
In my demo I have randomly select a room i.e. 0 to 6 destination.
Start = 0
End = 6
My algorithm will return the path to travel from 0 to 4. Ex the return value 0-1-3-6
Its working perfect.
May I know How to achieve Roaming AI (Realistic AI movement) from one point to next?
I tried but it comes crazy.
Refer me some tutorial.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

What do you mean by roaming AI? So they wander around between random rooms?

What have you achieved so far for this? And what went wrong?

If that's all you want then it should be easy. Your AI has a path to complete and then once it's completed it you just generate a new path to another room.
Image Image Image
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

did you try to use OpenSteer ???
It's really cool !!! ;)
http://opensteer.sourceforge.net/

a demo for Irrlicht: http://s-fonline.com/webhosting/dhenton ... erdemo.php
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
anandh
Posts: 61
Joined: Thu Sep 14, 2006 12:40 pm
Contact:

Post by anandh »

Randomly select some room and calculate the root to the selected room and it will travel.
Traveling from one point to its next point is not looks realistic. I simply calculate the angle from my current point to its next point and giving some speed to travel between the points.
Every time my enemy reaches a point i.e. room it has to local search that room. My AI has the path, it knows were to go.
did you try to use OpenSteer ???
Long time i saw the demo looks cool.
I have to integrate OpenSteer code.
Post Reply