On 28/11/2013 at 11:53, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R15
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
---------
Matrix stuff is still a little confusing to me - even (or especially) after reading the COFFEE SDK piece on it.
I am trying to align two objects in C4D.
Where the root object (A) is stationary and a second object (B) is aligned to one of the sides taking into consideration rotation of both objects.
At the moment I can do this by making B a child of A and clear its position and rotation. Then it's easy to move it to the required position relative object A. After it's all lined up I move it out of the hierarchy and reinsert it at the top-level. Not very elegant since it messes around with the hierarchy.
Is there a way to do this via matrix manipulation where each object can stay at its place in the hierarchy?
I have tried various approaches while reading through the COFFEE chapter about matrices but not achieved much.
In a nutshell: Object B needs to be moved/rotated as if it was a child of A.
Thanks