- Home /
Question by
Astrosaur · Aug 19, 2014 at 06:09 AM ·
rotationinputaxisacceleration
Input.acceleration Y and Z are the same?
When I use Input.acceleration.y and z, they both change when I rotate the phone in one direction. They're not the same values, but they seem to be the same axis. Thus, I'm missing an axis, and I can't implement this mechanic. I have no idea how to solve this.
Comment
If you are using Android, use logcat and print the values to see the magic in the device.
I am printing them to a guitext already. Y and Z both change when I rotate the phone one way, and x changes when I rotate it in another direction. Nothing changes when I rotate it in the third direction.
Answer by Kiwasi · Aug 19, 2014 at 07:13 AM
Input.acceleration is a Vector3. There is also a x axis to consider.