Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Basic accelerometer control for a camera

Discussion in 'iOS and tvOS' started by shaneburger, Oct 31, 2015.

  1. shaneburger

    shaneburger

    Joined:
    Oct 10, 2014
    Posts:
    15
    I thought there might be a prefab or script available in the standard assets, but could not find anything.

    I simply want to modify the standard prefab FPS controller to allow an iOS accelerometer to modify camera rotation. When you rotate the phone right, the camera looks right... left, up, down... etc.

    Is there an easy way to do this? I assume it is SUPER-common, thus I thought there might be an asset already made for it.
     
  2. shaneburger

    shaneburger

    Joined:
    Oct 10, 2014
    Posts:
    15
    Checking to see if anyone had an idea on this? Am I missing something basic?