#### Archived

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

# forward vector from a right-hand matrix.

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

## Recommended Posts

if the right-hand matrix is row-major, would the forward vector be the second row of the matrix? what about the Up vector? thanks everyone.

##### Share on other sites
Well the forward vector depends on which coordinate axis you specify as the forward, x,y,z? If y is forward then it should be the second row of a row majour matrix.

Generally engineers have the convention that x and y are on the horisontal plane and z is the vertical, ie z is up and y could very well be forward.

Often in computer graphics however we are heavily influenced by the screen view, where x is left or right y is up and z extends out of the screen.

So in answer, it all depends...

##### Share on other sites
i am sure the z goes up and down.
so i guess the second row is the forward vector.
so where would my up vector be then?

##### Share on other sites
I think the general agreement with vectors is that they represent the axis x, y, and z respectively. So if z is the one you are after then it will be the third row in the matrix.

1. 1
Rutin
67
2. 2
3. 3
4. 4
5. 5

• 21
• 10
• 33
• 20
• 9
• ### Forum Statistics

• Total Topics
633420
• Total Posts
3011790
• ### Who's Online (See full list)

There are no registered users currently online

×