title: Moving object on x axis with mouse move
body: <p>I am trying to create a game where the player drops a cube from the top of the screen to the bottom, collecting points on the way down depending on where they dropped the cube from (like a Coin Pusher arcade game). </p>
  
  <p>At the moment I am able to have my cube move to the mouse, but this in both X and Y values. See - </p>
  
  <pre><code>Camera.main.ScreenPointToRay(Input.mousePosition);
  Vector3 mouse = Input.mousePosition;
  mouse = mouse;
  transform.position = Camera.main.ScreenToViewportPoint(mouse);
  </code></pre>
  
  <p>I am keen to have movements only on X but am unsure how to achieve this. </p>
  
  <p>Thank you.</p>