Jump to content
  • Advertisement

Archived

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

McGyverDK

Vector question.

This topic is 5427 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
Thanx, it was one of those things where I was looking for a complex solutions. And then it was just an addition. :-)

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!