title: Distance from start point to end point in percentage in update
body: <pre><code>float curpos = player.transform.position.magnitude;
  float targetpos=GameObject.Find ("target").transform.position.magnitude;
  float percentDist = (curCarpos / targetpos) * 100;
  </code></pre>
  
  <p>What I want to do is calculate percentage along the way from current point which is always moving to end point, starting from zero and once it reaches it should be 100. </p>
  
  <p>For some reason it is starting from 14% decreasing to 0% and then starting from 0%-99%.</p>