- Home /
Question by
Hansolo776 · Feb 27, 2015 at 11:20 AM ·
movementmobileaccelerometerz axisregister
Mobile z axes movement
Hey,
I want to make a app that you hold your mobile in your hands and push the mobile forward and backwards. Is there a way for unity to register this? Like some kind of accelerometer but then for movement and not for tilting.
Hope you can help me out!
Comment
Answer by alok-kr-029 · Feb 27, 2015 at 11:28 AM
use unity gyroscope
Debug.Log(Input.gyro);
try using unity remote to read the value
First check if your device has gyroscope support;
Your answer
Follow this Question
Related Questions
Mobile Movement Choppy in 2d endless runner 0 Answers
How do I stop an object from cloning when moving? 1 Answer
UI button adding existing scrip to move 2d character 0 Answers
Rotate camera but view should be static 0 Answers
Android Shake 0 Answers