Sign in to follow this  

3D angle Problem

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

Problem is when AI change direction, the face of AI won't face to the proper direction. I use this function to move model's face.
D3DXMatrixRotationY(&matrix,angle);

this function for movement.
g_Mesh.vPos.x += sin(angleX)*speed;
g_Mesh.vPos.z += cos(angleZ)*speed;

How can I apply angleX and angleY to be one single value for AI to rotate its face to the way where it gonna go? In directX has some function can help?? thanks

Share this post


Link to post
Share on other sites

This topic is 2815 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this