title: How can i throw an object to a specific point with physics
body: <p>I want exactly this :</p>
  <p>The probability of going to the basket must be 100%.</p>
  <p><a href="https://i.stack.imgur.com/bEnsI.png" rel="nofollow noreferrer">Throw</a></p>
  <p>I tried this :</p>
  <pre><code>Vector3 direction = new Vector3(pota.position.x - transform.position.x, pota.position.y - transform.position.y, pota.position.z - transform.position.z);
  float vAngle = Vector3.Angle(direction, Vector3.forward);
  float hAngle = Vector3.Angle(direction, Vector3.left);
  float distance = Vector3.Distance(transform.position, pota.position);
  float yDistance = Mathf.Abs(distance * Mathf.Cos(vAngle)) + 0.5f;
  float xzDistance = (distance * Mathf.Sin(vAngle));
  float xDistance = (xzDistance * Mathf.Sin(hAngle));
  float zDistance = Mathf.Abs(xzDistance * Mathf.Cos(hAngle));                    
  rb.AddForce(new Vector3(xDistance, yDistance, zDistance), ForceMode.Impulse);
  </code></pre>
  <p>Thank you for your help.</p>