how does math distance work
Author |
Message |
Shyfire
![](http://img455.imageshack.us/img455/6945/pooptasticx1hn.jpg)
|
Posted: Sat May 07, 2005 10:50 am Post subject: how does math distance work |
|
|
can someone please tell me how to use math distance in regards to AI |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Delos
![](http://www.members.shaw.ca/rfolz/delos_avatar.gif)
|
Posted: Sun May 08, 2005 12:33 pm Post subject: (No subject) |
|
|
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. |
|
|
|
|
![](images/spacer.gif) |
[Gandalf]
![](http://compsci.ca/v3/uploads/user_avatars/189297994e4c716fec7f1.png)
|
Posted: Sun May 08, 2005 6:24 pm Post subject: (No subject) |
|
|
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. |
|
|
|
|
![](images/spacer.gif) |
|
|