- Home /
Input.GetRotation Question
How does one use Input.GetRotation? What's it used for? Returns a Quarternion.
It wants as a param : int deviceID
Where do I get this device ID?
SystemInfo.graphicsDeviceID; ?
Anyone have an example of usage?
If I had to guess, I'd say it's for a joystick or pressure pen of some kind.
Answer by Teare · Apr 23, 2011 at 05:39 PM
I don't recall GetRotation being a class element of Input. What exactly are you trying to use this for?
Are you trying to get this information from a mobile device with gyroscope abilities?
Answer by NickCh · May 13, 2011 at 12:22 PM
Have you tried to go Edit->Project Settings->Input and set an Axis called : GetRotation?? actually if you want to rotate your objects just do : transform.Rotate or Quaternion....
Answer by taxvi · Jan 05, 2015 at 06:07 PM
it's for joysticks with rotation detectors, deprecated, substituted with: http://wiki.etc.cmu.edu/unity3d/index.php/Sony_PlayStation_Move
Your answer