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!

You’ve read the docs, right?

use unity gyroscope

Debug.Log(Input.gyro);

try using unity remote to read the value

First check if your device has gyroscope support;