Hi all,
I have an empty gameobject which is a parent to other objects. I can move the empty parent and all children move nicely with it. No problem. However its a different story when I try and rotate it. When I use transform.rotate() the object does indeed rotate, but around the pivot point and so the object moves out of position. I read that all rotations done in scripts(Im using C#) rotate around the pivot point, not the centre point. How can I tackle this? I just want to rotate the parent in one axis around its centre.
Thanks
Use Transform.Rotate…?