I have a child where I want the
rotation to work like
(parentRot, parentRot, 0).
So first I set its
localRotation to 0, meaning it will get the parents rotation:
child.localRotation = Quaternion.identity;
But how can I make sure the world rotation (not local) value of the z axis stays at 0?