title: Move objects in a specific location
body: <p>Trying to move the object to a specific location I used the below code, but after releasing the mouse, the position changed to a different position.
  So what I'm trying to do is, forklift picks up object and places it in specific place.</p>
  
  <p>Does anybody know where I am going wrong or have another idea?</p>
  
  <pre><code>public GameObject item;
  public GameObject tempParent;
  public Transform guide;
  
  void Start()
  {
      item.GetComponent&lt;Rigidbody&gt;().useGravity = true;
  }
  
  // Update is called once per frame
  void Update()
  {
  
  }
  private void OnMouseDown()
  {
      item.GetComponent&lt;Rigidbody&gt;().useGravity = false;
      item.GetComponent&lt;Rigidbody&gt;().isKinematic = true;
      item.transform.position = guide.transform.position;
      item.transform.rotation = guide.transform.rotation;
      item.transform.parent = tempParent.transform;
  }
  private void OnMouseUp()
  {
      float horizontalInput = 24.63001f;
      float verticalInput = 1.017074f;
      item.GetComponent&lt;Rigidbody&gt;().useGravity = false;
      item.GetComponent&lt;Rigidbody&gt;().isKinematic = false;
      transform.position = new Vector3(horizontalInput, verticalInput, 23.95186f);
  }
  </code></pre>