Computer Science Canada how does math distance work |
Author: | Shyfire [ 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 |
Author: | Delos [ Sun May 08, 2005 12:33 pm ] |
Post 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. |
Author: | [Gandalf] [ Sun May 08, 2005 6:24 pm ] |
Post 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. |