How can I use gyro to move something to left and right. I try it from script references but nothing works. Pls help me.
PS: I am using S4 mini
How can I use gyro to move something to left and right. I try it from script references but nothing works. Pls help me.
PS: I am using S4 mini
I am not sure what you are trying to do but maybe something like this:
private Vector3 angle;
void Start() {
Input.gyro.enabled = true;
}
void FixedUpdate() {
if (SystemInfo.supportsGyroscope) {
angle -= Input.gyro.rotationRateUnbiased;
}
}