Why when i spin the rotation manually the camera rotates?

I have a problem with understanding how rotation is exactly works.

I have a Player–>Focal Point–>Main Camera.You can see the structure in the image below.

When the sfere(Player) rotates, the child(Focal Point) also rotates,but the camera which inside the Focal Point doesnt rotate. i cant understand why

But when i change the rotation of Player or Focal Point manually by dragging the x,y,z axes in the inspector my camera changes its rotation to.

Why does it work like that?

The image bellow is my script. Perhaps it will be useful.

:slight_smile: sorry for using the word “rotation” too often :slight_smile:

1 Like

You can make the player rotate around the ball with this.

But it works properly. I want to know why does it works the way it works.

1 Like
  1. To be clear (so there must be no problem here):
    1.1. You Set Local toggle in Scene View (it’s relevant for Scene View only).
    1.2. Rotate around Axis uses Local axis by default based on this.
    1.3. The Inspector shows Local values in Transform.
  2. Vector3.up — is a global axis. GameObject local axis can be got from transform.up. Example.
  3. Next, you didn’t provide inspector screenshots of these 3 objects. There can be a rotation in the hierarchy that changes the coordinate system, and you experience the expected result.

For example, as you can see in all 4 objects related to camera in my Football, there are no rotation changes and no such issues: