dHeightfieldGetHeight

@brief Callback prototype

Used by the callback heightfield data type to sample a height for a given cell position.

@param p_user_data User data specified when creating the dHeightfieldDataID @param x The index of a sample in the local x axis. It is a value in the range zero to ( nWidthSamples - 1 ). @param x The index of a sample in the local z axis. It is a value in the range zero to ( nDepthSamples - 1 ).

@return The sample height which is then scaled and offset using the values specified when the heightfield data was created.

@ingroup collide

extern (C) nothrow
alias dHeightfieldGetHeight = dReal function(void* p_user_data, int x, int z)

Meta