Archived

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

CrazySwede

Vector question

Recommended Posts

CrazySwede    122
Hi, I would appreciate some help with my 3D programming. I have a D3DXVECTOR3, which is the direction in which my mesh is supposed to face. How do I create a Matrix that I can use as the world matrix for my mesh if I want it to face in the same direction as the vector? Since I know the position of the mesh I can build the translation matrix without problems, but the matrix to do my rotation is still a mystery. Please help. David Hallgren

Share this post


Link to post
Share on other sites