remove unused function

This commit is contained in:
in0finite 2021-09-07 01:04:23 +02:00
parent b62e786dad
commit 3a40487a6d

View file

@ -971,20 +971,5 @@ namespace SanAndreasUnity.Utilities
return clip.samples * sizeof(float);
}
/// <summary>
/// Returns the ground position using X and Z position
/// </summary>
/// <param name="x">The X position</param>
/// <param name="z">The Z position</param>
/// <returns>The ground level</returns>
public static float FindYCoordWithXZ(float x, float z)
{
if (Physics.Raycast(new Vector3(x, 3000, z), Vector3.down, out RaycastHit hit))
{
return hit.point.y;
}
return -1;
}
}
}