Tag Info

New answers tagged

0

Try this: using UnityEngine; using System.Collections; public class RotateTheCamera : MonoBehaviour { private float targetAngle = 0; private float currentAngle = 0; void Update () { float mouseXChange = Input.GetAxis("Mouse X"); targetAngle += mouseXChange * 10; if (targetAngle < currentAngle) { ...



Top 50 recent answers are included