Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Rotating multiple meshes around a single point

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

Say I have 3 Meshes of an arrow pointing up, each with its own world matrix, and I rotate each one 180 degrees on the z-axis, each arrow would then be pointing down right? i.e. 3 arrows: /\ /\ /\ rotate 180degrees: \/ \/ \/ but what if i wanted to rotate them all about say the origin so I wanted to end up with /\ /\ /\ (ok that is 90 degrees but you get the picture) How would i go about doing this? I understand that in this nstance i would need to move them not just rotate them but how do i figure out where to move them to? Thanks for any help you can offer.

Share this post

Link to post
Share on other sites
First mesh: Leave it.
Second mesh: Translate it to ( -mesh.Width, +mesh.Height ).
Third mesh: Translate it to( -mesh.Width*2, +mesh.Height*2 ).

If this is what you mean :-./*


Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!