Answers for "check distance to gameobject"

C#
4

check distance to gameobject

/// <summary>
/// Return distance between two points
/// </summary>
/// <param name="target"></param>
/// <param name="startPos"></param>
/// <returns></returns>
public float CheckDistanceTwoPoints(Vector3 target, Vector3 startPos)
{
	return Vector3.Distance(target, startPos);
}
Posted by: Guest on May-03-2020

Code answers related to "check distance to gameobject"

C# Answers by Framework

Browse Popular Code Answers by Language