SUBSCRIBE for More Unity Tutorials. Void Example if other float dist Vector3Distance otherposition transformposition. Is something described here not working as you expect it to.
This program calculates the distance nbetween two points as well as their anglenPlease type the prompted values.
Also as a related question. Or if you prefer. Vector2Distanceab is the same as a-bmagnitude. Print Distance to other.