Class TerrainUtility
public static class TerrainUtility
- Inheritance
-
TerrainUtility
- Inherited Members
Methods
GetDistanceToGround(in Vector3)
Returns the distance from a point to the 'ground' by performing a raycast.
public static float GetDistanceToGround(in Vector3 point)
Parameters
pointVector3
Returns
Remarks
The raycast could hit a building, etc. If the raycast doesn't hit anything, SDG.Unturned.Level.HEIGHT will be returned.
GetHighestPoint(in Vector2, float)
Perform a raycast from the sky to find the 'ground'.
public static float GetHighestPoint(in Vector2 point, float minHeight)
Parameters
pointVector2minHeightfloat
Returns
Remarks
This could hit a building, etc.
GetHighestPoint(in Vector3, float)
Perform a raycast from the sky to find the 'ground'.
public static float GetHighestPoint(in Vector3 point, float minHeight)
Parameters
pointVector3minHeightfloat
Returns
Remarks
This could hit a building, etc.
GetHighestPoint(in Vector3, float, out Vector3)
Perform a raycast from the sky to find the 'ground'.
public static float GetHighestPoint(in Vector3 point, float minHeight, out Vector3 normal)
Parameters
pointVector3minHeightfloatnormalVector3
Returns
Remarks
This could hit a building, etc.
GetMapHighestPeak()
Gets the highest point on the map.
public static float GetMapHighestPeak()