Hi, im trying to rotate a plane around an axis. I have positioned the plane 5 out to the right and set the rotation to 15 degrees on the y axis. In my understanding that should rotated the plane on a radius of 5 around the world 0,0,0 position. Instead it effects the local rotation.
GameObject plane = GameObject.CreatePrimitive(PrimitiveType.Plane);
plane.transform.position = new Vector3(5, 0, 0); // place the plane 5 out to the right
plane.transform.localRotation = Quaternion.Euler(90, 180, 0); // rotate the local space so its upright
plane.transform.rotation = Quaternion.Euler(0, 15, 0); //why doesn't this rotate around the world 0,0,0 coordinate.
How can i rotate the plane around an off center axis.