title: How can I get click on collider relative in percentages or local points
body: <p>I have a plane with MeshCollider and I managed when I clicked on that plane to create new box on that position with code:</p>
  
  <pre><code>    bool hit = GetComponent&lt;MeshCollider&gt; ().Raycast (Camera.main.ScreenPointToRay (Input.mousePosition), out hitInfo, 1000.0f);
      if (hit) {
          GameObject cube = GameObject.CreatePrimitive(PrimitiveType.Cube);
          cube.transform.position = hitInfo.point;
      }
  </code></pre>
  
  <p>That plane represents a football playground ( in real life it would be 100 x 50 meters ). How can I get relative where I clicked to plane ?
  Whole Image represents Plane ( football playground 100 m x 50 m ) and P areas where when I clicked I play Penal.
  ( I want to know if it is clicked inside some area I would play penal, for example: if I touched between 0 and 16 meters or between 84 and 100 meters )</p>
  
  <p><a href="https://i.stack.imgur.com/GiKI3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GiKI3.png" alt="enter image description here"></a></p>