Jump to content
  • Advertisement
Sign in to follow this  
pingyingtu

Mesh Rotation around user coordinate

This topic is 5198 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
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!