Well, I tried to write a C# script using the knowledge I possess, and it was meant to make the camera rotate
But my lack of knowledge and time brought an error to me: as time goes by, the transform.position keeps changing, and that was not suposed to happpen.
So, if anyone could help me out, I would really appreciate.
Here’s the code:
using UnityEngine;
using System.Collections;
public class CameraControll : MonoBehaviour
{
public float speedH = 0.75f;
public float speedV = 2.0f;
private float yaw = 0.0f;
private float pitch = 0.0f;
void Update()
{
yaw += speedH * Input.GetAxis("Mouse X");
pitch -= speedV * Input.GetAxis("Mouse Y");
transform.eulerAngles = new Vector3(pitch, yaw, 0.0f);
}
}