You should use hit.point ( the point where it hit), not hit.distance (the distance from your object to the object that was hit).
In addition, you should check the 'Use World Space' checkbox.
↧