IN THIS ARTICLE
Terrain Height Gradient List Component
The Terrain Height Gradient List provides height data for the terrain system from a list of one or more gradients. The range of heights is adjusted by scaling the height of the Axis Aligned Box Shape component on the same entity.
Provider
Dependencies
Terrain Height Gradient List properties
Property | Description | Values | Default |
---|---|---|---|
Gradient Entities | An array of entities with a Gradient component. | Array: EntityId | None |
TerrainAreaHeightRequestBus
Use the following request functions with the TerrainAreaHeightRequestBus
EBus interface to communicate with Terrain Height Gradient List components of your game.
Request Name | Description | Parameter | Return | Scriptable |
---|---|---|---|---|
GetHeight | Returns a Vector3 of the Query Position with the Z-value updated to the terrain’s height at the query position. Also returns a boolean value indicating if terrain exists at the Query Position. | Query Position: Vector3 | Terrain Height: Vector3, Terrain Exists: Boolean | No |