title: Using Vector3.Distance() to only calculate distance between x axises of 2 different transforms
body: <p>how can I calculate the distance between 2 different objects' transform in only x axis ? </p>
  
  <pre><code> float distance = Vector3.Distance(spawnPoint.transform.position, player.transform.position);
  </code></pre>
  
  <p>I use this method but the problem with  this method is that it calculates the distance between all axises of specified game objects.</p>