title: Unity3D How to make object go away form mouse click position 2D
body: <p>Im thinking about it two days. I still did not made any progress.
  I wonder how to do that objects fly away from mouse click position in 2D view?</p>
  
  <p>I tried like that:</p>
  
  <pre><code>        pos = Input.mousePosition;
          Vector3 realWorldPos = Camera.main.ScreenToViewportPoint(pos);
          print("MOuse pos: " + realWorldPos);
  
          //print(realWorldPos);
          Vector3 velo = GetComponent&lt;Rigidbody2D&gt;().velocity;
  
          if (realWorldPos.x &lt; 0.5)
          {
              velo = new Vector3((realWorldPos.x * speed), velo.y);
          }
          else if(realWorldPos.x &gt; 0.5)
          {
              velo = new Vector3((realWorldPos.x * speed) * (-1), velo.y);
          }
          if (realWorldPos.y &lt; 0.5)
          {
              velo = new Vector3(velo.x, realWorldPos.y * speed);
          }
          else if (realWorldPos.y &gt; 0.5)
          {
              velo = new Vector3(velo.x, (realWorldPos.y * speed) * (-1));
          }
  
          GetComponent&lt;Rigidbody2D&gt;().velocity = velo;
  </code></pre>
  
  <p>But it doesnt work as I want.</p>
  
  <p>Is it possible to do this?</p>