Guest User

Untitled

a guest
Mar 20th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. angle = atan2(world._41 - XMVectorGetX(pos), world._43 - XMVectorGetZ(pos)) * (180.0 / MathHelper::Pi);
  2.  
  3. // Convert rotation into radians.
  4. rotation = (float)angle * 0.0174532925f;
Add Comment
Please, Sign In to add comment