Camera Direction
If my camera has an orientation matrix (D3DXMATRIX), how can I extract a D3DXVECTOR3 from it that describes the direction its pointing?
edit: By orientation, I mean a view matrix that will be used in the view pipeline transform. I think they're the same...
If it's a view matrix (as you indicated), you should be able to construct the forward vector from elements 13, 23, and 33 of the matrix. If it's an object matrix, use 31, 32, and 33.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement