So apparently the accelerometer is too sensitive by just tilting a bit and the ball just move like crazy/fast. So i do i slow down or decrease the sensitivity?
using UnityEngine;
public class acce : MonoBehaviour
{
private Rigidbody2D rigid;
private Vector2 movement;
public float movementSpeed = 10f;
void Start()
{
rigid = GetComponent<Rigidbody2D>();
}
void Update()
{
movement = new Vector2(Input.acceleration.x,0) * movementSpeed;
rigid.AddForce(movement);
}
}