Jump to content
  • Advertisement

Archived

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

PurpleAmethyst

Question about vectors and angles

This topic is 5587 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

Advertisement
Just an advice: It might be a good idea for you to study some elementary linear algebra before you go on with your camera movement.

A rotation is a transformation that transforms one set of vectors to another. Thus, it is a relation between vectors, and in no way the same as a vector. Therefore it''s hard to understand what you mean when you say you want to construct a vector from a rotation.

Share this post


Link to post
Share on other sites
Okay, i know that may have sounded a bit strange.
Heres what im trying to do in 2D.


Y V(don't know this)
| /
| /
| /
|/
-----O-----X
|
|
|
|


I know the angle XOV, and I need to work out V. I do this using sin and cos, that much works. I want to know how to do this in 3D. I've tried all this matrix stuff all weekend and could get it to work. I can move forward & backwards in XZ and look in all 6 directions, but can't move up r down in y.


[edited by grhodes_at_work to add the "code" tags]

[edited by - grhodes_at_work on February 3, 2003 6:29:45 PM]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
hi
read about camera matrix > there are sins and coss of yours rotations

then multiply one-vector and this matrix

c''ya

Share this post


Link to post
Share on other sites
Use the [ code ] tags when doing ASCII art.

And yes, your problem can be solved. Look up spherical coordinates.

Cédric

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!