dReal scale, dReal offset, dReal thickness, int bWrap);
复制代码
pHeightData is a pointer to the height data;
bCopyHeightData specifies whether the height data should be copied to a local store. If zero, the data is accessed by reference and so must persist throughout the lifetime of the heightfield;
width, height are the world space heightfield dimensions on the geom's local X and Z axes;
widthSamples, depthSamples specifies the number of vertices to sample along the width and depth of the heightfield. Naturally this value must be at least two or more;
scale is the vertical sample height multiplier, a uniform scale applied to all raw height data;
offset is the vertical sample offset, added to the scaled height data;
thickness is the thickness of AABB which is added below the lowest point, to prevent objects from falling through very thin heightfields;
bWrap is 0 if the heightfield should be finite, 1 if should tile infinitely.