AI Class For Irrlicht

A forum to store posts deemed exceptionally wise and useful
Post Reply
Emil_halim
Posts: 518
Joined: Tue Mar 29, 2005 9:02 pm
Location: Alex,Egypt
Contact:

AI Class For Irrlicht

Post by Emil_halim »

Hi All

first of all, i want to thank Omer Emad for his great AI stuff.

I have made a TMove class that looks like Omer Demo,so what this class offer for us?

you can attach it to any node that you normally created,so you still manipulate your node as usual,after that
you can scane the around area for a specific target node by using ScaneArea(target,Redius) Function ,
the redius parameter is the distance for our node and the desired Area, if we found it the then we start to
move forward to that target node by using MoveForward(speed) function , then we test the distance between
our node and target node ,if it is less than 30 we start to attak the target node.

see it in the wiki
http://www.irrforge.org/index.php/AI_Class_For_Irrlicht

here is a screen shots,the first is before seeing the target node,and the second after seeing the target node and start to move frowared to it.

Image
Image
Post Reply