Direction rotation

Started by
1 comment, last by mind in a box 13 years, 8 months ago
I'm sure this is simple, but have been stuck for hours!!!!

I need to calculate rotation of a vector in 2d. e.g an object is travelling along the vector (0,1) and the user presses left to rotate 45 degrees to the left, what is the new vector?
Advertisement
Google comes up with 1,420,000 hits for "vector rotation 2D," several of which answer your question. Google is your friend! [smile]

Please don't PM me with questions. Post them in the forums for everyone's benefit, and I can embarrass myself publicly.

You don't forget how to play when you grow old; you grow old when you forget how to play.

sin, cos and tan are your friends, too! [smile]

This topic is closed to new replies.

Advertisement