Skip to content

TerrainX

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

TerrainX

TerrainX: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 X coordinate of the ground below or above the point.

Description

Looks at the terrain from straight above a point in the world and returns the X coordinate of the point of the ground that lies there. For a terrain that is not rotated, this is simply the X you passed in; with a rotated terrain it tells you where the ground really is.

Related Commands

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

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally