Guest User

Untitled

a guest
Jun 23rd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. speed = D3DXVECTOR3(1.0f, 2.0f, 3.0f);
  2. direction = D3DXVECTOR3(1.0f, 0.0f, 0.0f);
  3. D3DXMATRIX temp;
  4.  
  5. D3DXMatrixRotationAxis(&temp, &direction, 3.14f);
  6. D3DXVec3TransformCoord(&speed, &speed, &temp);
Add Comment
Please, Sign In to add comment