Hello guys !!
I know here is a lot of question regarding LocalRotation and Rotation, but I have not found any simple example created which possible to see differents between these two rotation.
I am fighting in Unity trying understand differrents, but fails.
Please, if somebody have some usefull example add here it. Maybe with some picture.
Thanks.
Rotation is the absolute rotation of an object relative to the world. Local rotation is an object’s rotation relative to its parent.
So if Object A has a z rotation of 15, and it has a child Object B that you rotate about z axis by 30, then Object B has:
- local z rotation of 30
- z rotation of 45
If an object has no parent (i.e. it exists at the top level of the scene hierarchy) or if its parent is not rotated, localrotation and rotation will be the same.