viewers access
public void Player.PlayerController.RotateCamera(Vector3 vec)
CyberPsychosis > Player > PlayerController > RotateCamera
Rotates the camera by the vector vec
Different from SetRotation(), which overrides the rotation. instead RotateCamera() will add to the euler angles
using UnityEngine;
using Player;
public class CameraMover : MonoBehaviour
{
public PlayerController player;
void Update()
{
// causes the player to start spinning in circles
player.RotateCamera(new Vector3(0, 1, 0) * Time.DeltaTime);
}
}