Hello. I trying to move the object by touch. It works but the movement is not smooth. How to fix it?
if (Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Moved)
{
Vector2 touchDeltaPosition = Input.GetTouch(0).deltaPosition;
transform.Translate(0, touchDeltaPosition.y * speedTouch * Time.deltaTime, 0);
}