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

Vector question

This topic is 6170 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 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