• Advertisement
Sign in to follow this  

Mesh Rotation around user coordinate

This topic is 4902 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, I am a newbie of D3D. After test "D3DXMatrixRotationYawPitchRoll" more and more, I found that it is not rotation method I want . "D3DXMatrixRotationYawPitchRoll" and "matRotZ * matRotX * matRotY " rotate around the self Y/X/Z-axis. I just want when user press VK_Left/VK_Right..., the mesh rotate around the user Y/X/Z-axis( or World coordinate/space ...). http://home.kimo.com.tw/pingyingtu.tw/RotateView.html Fig 1.1 is initial state. Fig 1.2 using VK_UP to pitch X-axis. Fig 2.1 using VK_Left to yaw Y-axis from Fig 1.1. Fig 2.2 using VK_UP to pitch X-axis from Fig 2.1. But , I don't want this rotation. I want Fig 2.3. Just look like roll -up. How to rotate around the user coordinate?

Share this post


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

  • Advertisement