
-----------------------------------
Shyfire
Sat May 07, 2005 10:50 am

how does math distance work
-----------------------------------
can someone please tell me how to use math distance in regards to AI

-----------------------------------
Delos
Sun May 08, 2005 12:33 pm


-----------------------------------
Please elaborate upon your request.  Math.Distance() works using Pythagorus' theorem.  What do you mean "in regards to AI"?  AI could mean a lot of things in a lot of situations.

-----------------------------------
[Gandalf]
Sun May 08, 2005 6:24 pm


-----------------------------------
Maybe calculating where the enemy (you) is and then following it.  If the computer is x units away from you then it fires??

You have to be more specific for your situation.
