Skip to main content
gamedev.net
🔒 Locked

Vectors angles...

Started by Zoot 6 replies 250+ views
Original Post
Zoot
Zoot
I have players, pl1 and pl2... pl2 is a AI i want hime to always look at pl1.. but how do I calc the angle pl2 shold look in?
GSACP: GameDev Society Against Crap PostingTo join: Put these lines in your signature and don't post crap!
Zoot
Zoot
for z then?
GSACP: GameDev Society Against Crap PostingTo join: Put these lines in your signature and don't post crap!
Tjoppen
Tjoppen
Use the above code, but replace y with z...this gets the rotation on the y axis

then if you´re a little smart and so on, you can replace x with y, and you´ve got the x rotation
delete this;
Zoot
Zoot
"then if you´re a little smart and so on, you can replace x with y, and you´ve got the x rotation"

If you got a brain you will understand that it is not working that way! Think next time and reply then....
GSACP: GameDev Society Against Crap PostingTo join: Put these lines in your signature and don't post crap!
Tjoppen
Tjoppen
What do you think we have trigonometry at school??? Right, to LEARN these things

Just get a piece of paper and figure out the formula...

I figured out the line-plane intersection formula all by myself in half-an-hour
delete this;
Zoot
Zoot
ooooooooh! If you are so smart? Can you tell me what people use forums for? Not for insults. Think and maybe you can understand why you got banned from IRC.. and maybe you can understand why your replys dont help anyone...
GSACP: GameDev Society Against Crap PostingTo join: Put these lines in your signature and don't post crap!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.