Archived

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

Zeke

Rotating multiple meshes around a single point

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 :-./*

.lick

Share this post


Link to post
Share on other sites