This seems simple enough, but I am having some problems with it. I am trying to map the accelerometer to a first person camera. The goal is have the crosshairs (which i can just parent to the camera) move as the player tilts their device.
I understand how to access the accelerometer x, y, and z but I cannot figure out how to make the camera work with these numbers (if that is even possible)
Try using Gyroscope. Something like this: camera.transform.rotation = Input.gyro.attitude;
Or do you need just the up-down motion of the camera? If so, try using the following code in your camera script: