title: Getting distance between point of an object and another object
body: <p>First, I'd like to apologize because this is a very basic and repetitive question, but I am completely new to game development. </p>
  
  <p>I understand that I can find a distance between two objects using:</p>
  
  <pre><code>float dist = Vector3.Distance(other.position, transform.position);
  </code></pre>
  
  <p>However, how can I find the distance between a point of one object to other object?</p>
  
  <p>For instance let's say my object is this sphere</p>
  
  <p><img src="https://i.stack.imgur.com/qttSW.png" alt="enter image description here"></p>
  
  <p>Now, how can I return an array that says that there are no objects to the left (null), in the front there is an object at 1, and to the right there is an object at 0.5? </p>
  
  <p>Thank you for your patience and understanding</p>