title: Calculate distance between Mesh Edges
body: <p>I've the point of origin readily available where my mouse is on screen like so,</p>
  
  <pre><code>            ray = Camera.main.ScreenPointToRay(Input.mousePosition);
  </code></pre>
  
  <p>Now imagine a cube. Anywhere you click on this cube, a line is drawn from the edge clicked on, through the object, and stops at the other end. Orientation, vertical or horizontal, is determined by which side is clicked on, one of the 4 sides, or top or bottom.</p>
  
  <p>How does one determine the distance (from one edge of a mesh to the other), and orientation (vertical or horizontal)?</p>
  
  <p>Thoughts?</p>
  
  <p>Only idea I have so far is to use collision detection and using CollisionEnter as the start point and somehow draw a line that reaches the opposite end of the mesh and using CollisionExit to determine the destination (or exit) point. Then doing some calculation to determine the distance between the Enter and Exit methods.</p>