GetSteepness(float, float)
Gets the gradient of the terrain at point (x,y). The gradient's value is always positive.
阅读时间1 分钟最后更新于 21 天前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.TerrainModule
public float GetSteepness(float x, float y)
Parameters
Returns
Type | Description |
|---|---|
| float | The steepness angle, in degrees, of the terrain at the given point. |
Remarks
The and values are normalized coordinates in the range 0 to 1.
xy