#### Archived

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

# Question about vectors and angles

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

## Recommended Posts

If I have 3 angles of rotation for x, y and z, is it possible to construct a vector from thes using sin and cos. I need this for camera movement.

##### Share on other sites
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 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 on other sites
hi
read about camera matrix > there are sins and coss of yours rotations

then multiply one-vector and this matrix

c''ya

##### Share on other sites
Try starting here...

Rotation

##### 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 on other sites
Thanks for your help have it working now :-).

1. 1
Rutin
49
2. 2
3. 3
4. 4
5. 5

• 11
• 16
• 9
• 10
• 13
• ### Forum Statistics

• Total Topics
633003
• Total Posts
3009850
• ### Who's Online (See full list)

There are no registered users currently online

×