What i’m doing right now with mouse movement is:
void MoveWithMouse()
{
float mousePosInBlocks = Input.mousePosition.x/Screen.width*16;
Vector3 paddlePos = new Vector3(0.5f,this.transform.position.y,0f);
paddlePos.x = Mathf.Clamp(mousePosInBlocks,minX,maxX);
this.transform.position = paddlePos;
}
Please help me with how to it corretly and smoothing up the paddle movement
and share maybe what you did in mouse-paddle movement.
Thanks