I’m trying to use a phones (Windows Phone to be exact) built in gyroscope to move the camera around for use in a VR headset. I’ve managed to get the gyroscope to move the camera but the result is way too fast rotation and very jittery movements. Was wondering if there is a way to slow down the input? Here’s the code I’m currently using:
using UnityEngine;
using System.Collections;
public class Gyro : MonoBehaviour
{
void Start ()
{
Input.gyro.enabled = true;
}
void Update ()
{
transform.Rotate (0, -Input.gyro.rotationRateUnbiased.x, -Input.gyro.rotationRateUnbiased.y, -Input.gyro.rotationRateUnbiased.z, 0);
}
}