PathEngine home | previous: | next: |
The client application creates objects deriving from this interface to enable PathEngine to work with a client side representation of surface detail such as a height field for terrain.
Defined in SDKRoot/code/externalAPI/i_pathengine.h.
class iTerrainCallBack { public: virtual ~iTerrainCallBack() {}; virtual float getHeightAt(int32_t x, int32_t y)=0; }; |
The virtual destructor is included just for good general programming practice.
Destruction remains the responsibility of the client application -
PathEngine will not call this virtual destructor.
This method is called by PathEngine to obtain the height of the terrain layer corresponding to this callback at specified x and y coordinates. | ||
An alternative version of the height query taking extra float parameters for precision components of position. |
Refer to
Documentation for PathEngine release 6.04 - Copyright © 2002-2024 PathEngine | next: |