PDA

View Full Version : How to face the right direction



Big B
02-27-2004, 08:07 AM
My main problem is determining the correct angles to rotate my object through. I know the current position of the object (In 3D space) and the current heading (As a Vector). I have also calculated the new heading (As another Vector). I need my object to rotate from facing the current heading to facing the new heading.

Any clues or sources of information that anyone could recommend for my problem would be greatly appreciated.

Thanks in advance

B

madmortigan
02-27-2004, 11:49 AM
You may find the following useful:
http://www.gamedev.net/community/forums/topic.asp?topic_id=198183

At least it'll get you started.

mad