Jump to content
  • Advertisement
Sign in to follow this  
repka3

clockwise and counterclockwise angle.

This topic is 3039 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 all, I have a function in my project that return the angle that the character is facing on. 0 if EAST D3DX_PI/2 if NORTH D3DX_PI if WEST (3/2)*D3DX_PI if SOUTH. this angles is counter clockwise. Now i need to find a rotation angle for the mesh and my mesh rotations are: 0 will face SOUTH D3DX_PI/2 will face WEST D3DX_PI will face NORTH (3/2)*D3DX_PI will face EAST this angles is clockwise according with D3DXMatrixRotationY who want clockwise rotation. I ask help about building trasformation from face angle->mesh rotation angle Thx to all for your time.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!