How to set a neutral position for phone acceleration

I have an object that moves based on the phones tilt acceleration values

transform.Translate(Input.acceleration.x * speed, 0, Input.acceleration.y * speed, Space.World);

that is what I use to move the object. Currently if the user holds the phone parallel to the ground the object wont move because the acceleration is zero. I want the user to be able to set where they want this “neutral position” so if holding the phone parallel to the ground is uncomfortable they can set the neutral position to be more at an angle. I haven’t been able to find anything on this topic and so I have been a bit lost. Any help would be appreciated :slight_smile:

Give the user some kind of button to save the current Input.acceleration. From that point on subtract it from the actual value.

Let’s say the user thinks Input.acceleration.x = 0.3 is suitable and saves it. If subtracted, he needs that same position to get a value of zero.