PathEngine home previous: Interface iTerrainCallBacknext: iTerrainCallBack::getHeightAtWithPrecision()
Contents, API Reference, Interfaces, iTerrainCallBack, getHeightAt

iTerrainCallBack::getHeightAt()

Description

This method is called by PathEngine to obtain the height of the terrain layer corresponding to this callback at specified x and y coordinates.

Syntax

float getHeightAt(int32_t x, int32_t y);

Parameters

x The x coordinate for the query.
y The y coordinate for the query.

Return Value

The height of the terrain at the queried x and y coordinates.

Remarks

Refer to Working with Terrain for an explanation of the terrain callback system.

C# Mapping

float getHeightAt(int x, int y);

Java Mapping

float getHeightAt(int x, int y);

Documentation for PathEngine release 6.04 - Copyright © 2002-2024 PathEnginenext: iTerrainCallBack::getHeightAtWithPrecision()