Skip to content

TerrainZ

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions
Blitz3D

TerrainZ

TerrainZ:Float32 terrain:Int32, world_x:Float32, world_y:Float32, world_z:Float32
Parameter Mode Type Default Description
terrain In Int32 required The terrain.
world_x In Float32 required
world_y In Float32 required
world_z In Float32 required

Returns: The world Z coordinate of the ground at that position.

Description

Returns the Z coordinate of the ground below or above a point of the world. As with TerrainX this only differs from the Z you passed in when the terrain is rotated.

Related Commands

CreateTerrain, LoadTerrain, TerrainDetail, TerrainHeight, TerrainShading, TerrainSize, TerrainX, TerrainY

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally