why is the cube moving when I use a controller, but not with the accelerometer?
void Update () {
text.text = "X: " + Input.acceleration.x + "; Z: " + Input.acceleration.z;
//transform.position = new Vector3(10* Input.acceleration.y, 0, 10* Input.acceleration.z);
transform.Translate(Input.acceleration.x, 0, Input.acceleration.z);
//transform.position = new Vector3(10* Input.GetAxis("Horizontal"), 0, 10* Input.GetAxis("Vertical"));
transform.Translate(Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertical"));
}
(I'm on a Xperia Z3 compact by the way)