title: drag imported object in unity3D
body: <p>I have basic knowledge of unity and cannot figure out how drag an imported object in unity with the first person controller.</p>
  
  <pre><code>#pragma strict
  
  private var ray:Ray;
  private var hit: RaycastHit;
  
  
  function Start()
  
  function Update()
  {
      if(Input.GetMouseButton(0))
      {
  
          ray = Camera.main.ScreenPointToRay(Input.mousePosition);
  
          if(Physics.Raycast(ray,hit))
          {
  
              if(hit.collider.tag =="draggable")
              {
                  transform.position.x = hit.point.x;
                  transform.position.y=hit.point.y;
              }
          }
      }
  }
  
  function OnTriggerEnter (other : Collider) {
          Destroy(other.gameObject);
  
          print("Hit");
      }
  </code></pre>
  
  <p>This is the script I have so far which works on a object that has been created in unity. I have searched for answers but they were all for objects that were created in unity.</p>
  
  <p>Any help will be much appreciated!</p>