Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

3 Dimensional Chat / Changing angles, according to angles

Author
Message
Hamish McHaggis
17
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 2nd Feb 2003 22:19
Ok, I know how to work out the direction to travel according to the angle that you are at (using sin etc) but if you rotate an object around the y axis and then need to rotate it along an imaginary axis that runs perpendicular to your line of sight, how do you work it out. As far as I can tell you need to use sin and cos again, but in a different way. I can't figure it out, does anyone else have an idea. Thanks!

p.s. I tried cos(a)^2 and it came pretty close to what I wanted but not exactely it seemed.
Yum! Yum! Yum! Yum!

Login to post a reply

Server time is: 2020-08-15 12:52:27
Your offset time is: 2020-08-15 12:52:27