Parent scaled, Child rotate?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 15/10/2006 at 15:39, xxxxxxxx wrote:
User Information:
Cinema 4D Version:
Platform: Mac OSX ;
Language(s) : C++ ;---------
Hello I am trying to control an Object in a hierarchy. I got almost everything figured out except when I put an object in a scaled object an rotate the child object it gets distorted.If anyone can give me some tips on how I can make the child object not distort I would be very grateful!
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 15/10/2006 at 16:37, xxxxxxxx wrote:
This is called 'coordinate system skewing' and is a result of the way that matrices work. The rotation & scale in a matrix are stored in the same elements (the m.v1, v2, v3 vectors in C4D). This submatrix or these axis vectors also control shear/skew on an object.
Skewing occurs on the children of non-uniformly scaled (NUS) parents because of the matrix multiplication affecting the child's coordinate system. That is, the parent's NUS is applied to the child's coordinate system which in turn introduces skewing of that system.
One solution to this problem is to perform ALL scaling before doing any rotations and translations. By ALL, I mean for the entire scene graph.