I will try to explain with a picture. The end point of the green piston points at the red dot. If it moves in such a way that it can no longer point at the red dot, then it will twist it's parent, etc, to still achieve the instruction to point at. That is why you have to always keep the point at targets far away, or in such a way that they can't cause illogical movements.
Your specialist military, sci-fi, historical and real world site.