Language

Camera rotation around player while following.

I'm trying to achieve a camera that follows and rotates around the player while allowing the player to do things like rotate in C#. This means that the player and camera need to rotate separately, but I find it impossible to get the camera to rotate if I set it's position to follow the player. I know exactly what the problem with my code is, but I have no idea how to fix it! Please help!

I tried your suggestion but edited to fit my needs, rotates camera around public Transform variable "player", wherever that player object may be. This only rotates the camera around the x axis of the player's position. How can I raise the camera to slightly above the player's position?Any suggestions on rotation on the Y axis?