Skip to main content
gamedev.net
🔒 Locked

view vector

Started by pag May 21, 2003 at 11:02 PM 0 replies 600+ views
Original Post
pag
pag
I have this view vector v, that I want to be able to rotate around position p. It can rotate on all three axes. I set the view vector like this:> v.x = p.x+cos(angle); v.y = 0; v.z = p.z+sin(angle); So now I want to be able to rotate this view vector, by adding the current angle with another angle. But how do I do this? The only way I can think of is converting the view vector back to degrees and then add the new angle, and then make the cos and sine calls on it, however I dont know how to convert them back into degrees... edit:> oh and I don't want an external variable storing the current angle... In the next 80 years 6 billion people will die... [edited by - pag on May 21, 2003 12:03:36 AM]
I am a signature virus. Please add me to your signature so that I may multiply.

Topic Locked

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

Sign in to reply to this topic.