Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 AI Help
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
do_pete




PostPosted: Wed Jan 11, 2006 10:35 am   Post subject: AI Help

This is my final project. I need to know how to make it so that the AI changes it's angle so that it ends up facing the player. I'm pretty sure this involves trigonometry or something else that I haven't learned about since I haven't taken grade 10 math yet. If anyone could give me a formula or something along those lines that would be great. Also tell me what you think of the game so far and any improvements I can make.
Sponsor
Sponsor
Sponsor
sponsor
MysticVegeta




PostPosted: Wed Jan 11, 2006 10:39 am   Post subject: (No subject)

I dont think there is any other way you can change the angles without using trig ratios/inverses. But if you haven'tcompleted grade 10 math (like me) you could always learn them on your own Smile Google.com is your friend.
Shyfire




PostPosted: Wed Jan 11, 2006 1:49 pm   Post subject: (No subject)

ya do_pete trig is really hard have fun trying to learn Shocked
btw
when am i gonna get ur submission for darksight Question
MysticVegeta




PostPosted: Wed Jan 11, 2006 2:36 pm   Post subject: (No subject)

Also, There are lots of program in the source code section dealing with the rotation of objects that use trig to do. Also, there are always programs submitted by catalyst before...
do_pete




PostPosted: Fri Jan 13, 2006 11:11 am   Post subject: (No subject)

I figures it out ... sort of... I'm going to use
code:
arctand ((x1 - x2) / (y1 - y2))
It still has some bugs in it but I think I can figure it out
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: