TerrainY
Terrain height at a world position.
TerrainY ( terrain,x#,y#,z# )
Parameters
- terrain
- the terrain's handle.
- x#
- the world position across.
- y#
- its height.
- z#
- its depth.
Description
Gives back the height, in the world, of a terrain's surface below or above a world position, with the terrain's position and scaling included. Use it to keep things standing on the ground: PositionEntity tree, x, TerrainY(land, x, 0, z), z.
