Jump to content
  • Advertisement


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


Vector question

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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!