#### Sphere

Vector3 AudioRoomArea.Locate(Vector3 target)

{

Vector3 actualPos = transform.position + pos;

Vector3 delta = actualPos - target;

float distance = Mathf.Sqrt(Mathf.Pow(delta.x, 2) + Mathf.Pow(delta.y, 2) + Mathf.Pow(delta.z, 2));

delta *= Mathf.Min(radius, distance) / ZeroCheck(distance);

return actualPos - delta;

}