0
\$\begingroup\$

If I have multiple equal meshes but with different pivots and I make a rotation on the first, is there a way to replicate this rotation to all meshes using a rotation Matrix?

For example, if I have a cube, one with it's pivot in the center and another with the pivot outside of the mesh, how can I rotate the first one 90 degrees on the X axis and use it's rotation Matrix to have the second model rotate on itself and not on his pivot?

Assuming that when I pass on the rotation matrix to other meshes I can't pass the vector of the pivot, is this possible?

\$\endgroup\$
1
  • \$\begingroup\$ Can you clarify what pivot you want the second cube to rotate around? A diagram of your input and expected result can help make this unambiguous. \$\endgroup\$ – DMGregory Jul 24 '20 at 15:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.