• Advertisement

Archived

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

Matrix to position/heading

This topic is 5064 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. I have a 4x4 Matrix (Left-handed, D3D) from which I need a position vector and a heading vector. The Position (x,y,z) = Matrix._41, Matrix._42, Matrix._43 But how do I calculate a heading vector?

Share this post


Link to post
Share on other sites
Advertisement
I suppose this is the solution (I am not sure):

The 4x4 matrix is a 3x3 matrix + some movement information in the 4th colum.
The 3x3 matrix contains the new coordinates of the x-axis, the y-axis and the z-axis. I suppose your heading vector is equal to the z-axis of the new coordinate system, wich you can find in the 3x3 matrix.

Share this post


Link to post
Share on other sites

  • Advertisement