Archived

This topic is now archived and is closed to further replies.

McGyverDK

Vector question.

Recommended Posts

McGyverDK    122
Hi there, I''m working with my camera class right now, and im kinda stuck with a vector problem. I have a vector, which tells me my current position. Then I have a normalized vector which tells me which way I am looking. How do I combine them? So instead of knowing which way I''m looking, I''m getting at "Look At Point", based on my position? /Anders

Share this post


Link to post
Share on other sites
rohde    432
quote:
Original post by McGyverDK
Hi there,

I''m working with my camera class right now, and im kinda stuck with a vector problem.

I have a vector, which tells me my current position. Then I have a normalized vector which tells me which way I am looking.

How do I combine them? So instead of knowing which way I''m looking, I''m getting at "Look At Point", based on my position?

/Anders



I''m not totally sure if I know what you''re trying to do, but it seems you just need to add the two vectors.



"Yeah, I would''ve killed you, but I''m glad I didn''t - the paperwork is a bitch"

Share this post


Link to post
Share on other sites