Skip to main content
gamedev.net
🔒 Locked

Vector question.

Started by McGyverDK Aug 9, 2003 at 5:35 PM 1 replies 650+ views
Original Post
McGyverDK
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
rohde
rohde
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"
"We confess our little faults to persuade people that we have no large ones." -Francois de La Rochefoucauld (1613 - 1680). | My blog
McGyverDK
McGyverDK
Thanx, it was one of those things where I was looking for a complex solutions. And then it was just an addition. :-)

Topic Locked

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

Sign in to reply to this topic.