| 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/include/i_pathengine.h.
class iTerrainCallBack
{
public:
virtual ~iTerrainCallBack() {};
virtual float getHeightAt(tSigned32 x, tSigned32 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 5.24 - Copyright © 2002-2010 PathEngine | next: |