Object get derformed when rotating

Hello, I’m trying to make a working Dobsonian telescope in Unity but I have a problem, the tube is a child of the turret but when I rotate the tube in the X-axis (height) the tube get deformed

Is that normal ?

EDIT: I put an empty instead of the turret and now its working fine !

The reason for this is due to matrix transformations. If your parent has a non uniform scale (1,1,0.5 for example) then any rotations to children will get skewed. It’s not an actual bug but just how it works.

To avoid the issue, any rotating child objects should be in a parent that has a uniform scale, for example 0.5, 0.5, 0.5 is acceptable as each axis has the same scale.

1 Like