I've been learning Unity scripting lately, and I've been looking for ways to find the distance, and came upon two different ones.
The Unity manual/documentation (here: http://docs.unity3d.com/Manual/DirectionDistanceFromOneObjectToAnother.html) has a few different statements you can use to calculate the distance, but the "Unity Scripting API" (here: http://docs.unity3d.com/ScriptReference/Vector3.Distance.html) uses a function build into Unity (Vector3.Distance) to find...
Different Ways to Find Distance
The Unity manual/documentation (here: http://docs.unity3d.com/Manual/DirectionDistanceFromOneObjectToAnother.html) has a few different statements you can use to calculate the distance, but the "Unity Scripting API" (here: http://docs.unity3d.com/ScriptReference/Vector3.Distance.html) uses a function build into Unity (Vector3.Distance) to find...
Different Ways to Find Distance