기술 자료

Unity Engine

Unity Engine

GetSteepness(float, float)

Gets the gradient of the terrain at point (x,y). The gradient's value is always positive.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.TerrainModule
public float GetSteepness(float x, float y)

Parameters

Returns

Type

Description

float

Remarks

The
x
and
y
values are normalized coordinates in the range 0 to 1.