- Home /
Question by
AhsanNaeem · May 27, 2018 at 11:03 AM ·
rotationrotation axischild object
How to change rotation of a child GameObject around its own axis instead of that of the Parent?
I want to change the rotation of a child object around y-axis. When I change the y-rotation value, it gets rotated along parent's y-axis instead of its own. I tried in the script as:
child.transform.Rotate( new Vector3(0, yRot, 0), Space.Self );
But the result is same. Any solution?
Comment