My camera is a child object of an empty gameobject, that I wish to rotate. The camera is a few units out of the center, so that it can rotate around objects placed in the same place as the empty game object. Standard fare, I am sure.
However, when I try to rotate the parent, the camera remains stationary in the world, rotating in place. I have tried a few different approaches, but it always results like this.
parent.transform.eulerAngles = new Vector3(0, 0, 90);
The strange thing, is when I do change the Parent rotation in the Inspector, it works as intented.
[EDIT] The camera has a script attached that determines its X axis position. Apparantly I need to make some changes to that script, then this one should work as intented. Thank you all for your time anyway.