how does math distance work
Author |
Message |
Shyfire
|
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 |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Delos
|
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. |
|
|
|
|
|
[Gandalf]
|
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. |
|
|
|
|
|
|
|