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

Official, universal solution to camera rotated by gyroscope

Discussion in 'Editor & General Support' started by luisanton, Jan 20, 2015.

  1. luisanton

    luisanton

    Joined:
    Aug 25, 2009
    Posts:
    325
    How is it that there’s no ‘official’, universal solution to rotating a camera using gyroscope/compass+accelerometer? There are tons of threads offering solutions but none seems the right one, or universal enough (some work on iOS, some on Android, some on Phones, some on tablets...)

    I got mine working on iOS devices, but looks awful on Android. Is there an official tutorial I'm missing or something? :m
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,998
  3. luisanton

    luisanton

    Joined:
    Aug 25, 2009
    Posts:
    325
    Indeed, that's a pretty neat solution! I just tested it on a MotoG and it works. Not 'official', though, not a one-line solution by any means, but at least it works.

    Dunno, I think it's a pretty interesting thing to be solved internally and offered as part of the Gyro API :)