org.ode4j.ode
Interface DHeightfield.DHeightfieldGetHeight

Enclosing interface:
DHeightfield

public static interface DHeightfield.DHeightfieldGetHeight

Callback prototype.

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


Method Summary
 double call(java.lang.Object pUserData, int x, int z)
          Callback prototype.
 

Method Detail

call

double call(java.lang.Object pUserData,
            int x,
            int z)
Callback prototype.

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

Parameters:
pUserData - User data specified when creating the dHeightfieldData
x - The index of a sample in the local x axis. It is a value in the range zero to ( nWidthSamples - 1 ).
z - The index of a sample in the local z axis. It is a value in the range zero to ( nDepthSamples - 1 ).
Returns:
The sample height which is then scaled and offset using the values specified when the heightfield data was created.