mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-10 14:44:17 +00:00
remove unused function
This commit is contained in:
parent
b62e786dad
commit
3a40487a6d
1 changed files with 0 additions and 15 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue