Skip to main content
GameDev.net gamedev.net
🔒 Locked

Vector question

Started by CrazySwede Jan 26, 2001 at 11:09 AM 0 replies 400+ views
Original Post
CrazySwede
CrazySwede
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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.